Created
September 17, 2018 03:53
-
-
Save daiki44/1db9485bd2b1c5c26cdf9f6b2d76ab5d to your computer and use it in GitHub Desktop.
【Laravel】Model ファイルのディレクトリ構成変更時にやること ref: https://daiki-sekiguchi.com/2018/09/17/laravel-how-to-change-model-dir/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# RegisterController.php | |
$ vim app/Http/Controllers/Auth/RegisterController.php | |
$ cat app/Http/Controllers/Auth/RegisterController.php | |
<?php | |
namespace App\Http\Controllers\Auth; | |
# 「Models\」を追加 | |
use App\Models\User; | |
use App\Http\Controllers\Controller; | |
... | |
# config/auth.php | |
$ vim config/auth.php | |
$ cat config/auth.php | |
... | |
'providers' => [ | |
'users' => [ | |
'driver' => 'eloquent', | |
# 「Models\」を追加 | |
'model' => App\Models\User::class, | |
], | |
... | |
# config/services.php | |
$ vim config/services.php | |
$ cat config/services.php | |
... | |
'stripe' => [ | |
# 「Models\」を追加 | |
'model' => App\Models\User::class, | |
'key' => env('STRIPE_KEY'), | |
'secret' => env('STRIPE_SECRET'), | |
], | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment