PHP Snippet 1:
/*Laravel\Passport\PassportServiceProvider::class,
App\Providers\CodeGrantProvider::class,
Spatie\Permission\PermissionServiceProvider::class,*/
PHP Snippet 2:
Laravel\Passport\PassportServiceProvider::class,
PHP Snippet 3:
php artisan config:clear
php artisan key:generate
php artisan config:clear
PHP Snippet 4:
php artisan passport:install
PHP Snippet 5:
php artisan passport:keys
PHP Snippet 6:
php artisan passport:install
PHP Snippet 7:
php artisan config:clear
php artisan key:generate
php artisan config:clear
PHP Snippet 8:
sudo chown www-data:www-data storage/oauth-*.key
sudo chmod 600 storage/oauth-*.key
PHP Snippet 9:
/**
* Register any authentication / authorization services.
*
* @return void
*/
public function boot()
{
$this->registerPolicies();
Passport::routes();
Passport::loadKeysFrom(__DIR__.'/../secrets/oauth');
}
PHP Snippet 10:
sudo chown www-data:www-data storage/oauth-*.key
php artisan passport:install
php artisan config:clear
php artisan key:generate
php artisan config:clear
PHP Snippet 11:
//Passport::loadKeysFrom('/secret-keys/oauth');