・ Installation of Passport
Console
conposer require laravel/passport
・ Register Passport with Laravel
Console
'providers' => [
:
Laravel\Passport\PassportServiceProvider::class,
],
-Key generation and record insertion
Console
php artisan passport:install
· Roll back all database migrations first, then run the migrate command
Console
php artisan migration:reflesh
・ Execution of seed
Console
php artisan db:seed
-Generation of "Personal Access Client"
Console
php artisan passport:client --personal
->Enter the client name
-If you do not change the ownership of this directory to the owner of the Laravel app, you will get a "Service Unavailable" error.
Console
$ ls -l /run/php-fpm/www.sock #Confirmation of authority
$ chown www:www /run/php-fpm/www.sock #Change permissions
・ I want to see the error log of the Laravel environment! Here you can see the cause of the alternative error (maybe)
Console
#In the app's root directory
$ vi storage/logs/laravel
・ I often confirmed errors in the Apache environment here.
Console
$ cd /
$ vi /var/log/httpd/error_log
https://www.wakuwakubank.com/posts/457-laravel-passport/
Recommended Posts