Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 0ec7dc0

Browse files
Move user model to models folder
1 parent 6b7ecc4 commit 0ec7dc0

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

‎app/Http/Controllers/Auth/AuthController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace App\Http\Controllers\Auth;
44

5-
use App\User;
5+
use App\Models\User;
66
use Validator;
77
use App\Http\Controllers\Controller;
88
use Illuminate\Foundation\Auth\ThrottlesLogins;

‎app/User.php renamed to ‎app/Models/User.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace App;
3+
namespace App\Models;
44

55
use Illuminate\Auth\Authenticatable;
66
use Illuminate\Database\Eloquent\Model;

‎config/auth.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
|
2929
*/
3030

31-
'model' => App\User::class,
31+
'model' => App\Models\User::class,
3232

3333
/*
3434
|--------------------------------------------------------------------------

‎config/services.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
],
3131

3232
'stripe' => [
33-
'model' => App\User::class,
33+
'model' => App\Models\User::class,
3434
'key' => env('STRIPE_KEY'),
3535
'secret' => env('STRIPE_SECRET'),
3636
],

‎database/factories/ModelFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
|
1212
*/
1313

14-
$factory->define(App\User::class, function (Faker\Generator $faker) {
14+
$factory->define(App\Models\User::class, function (Faker\Generator $faker) {
1515
return [
1616
'name' => $faker->name,
1717
'email' => $faker->safeEmail,

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /