composer install && npm install
php artisan key:generate
php artisan migrate
php artisan passport:install --uuids
[yes]
php artisan serve
php artisan passport:client
[1, sp, http://localhost:8080/callback]
- 修改config/auth.php的sps
- 在app/Providers/AuthServiceProvider.php中修改權限Passport::tokensCan
- 在routes/api.php中修改傳回的使用者資料