Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Laravel-passport-server-AuthServiceProvider
// 加入 Passport 的 routes, 記得 use Laravel\Passport\Passport
Passport::routes();
// 加入 Facebook_information、GitHub_information 存取權限規則
Passport::tokensCan([
'Facebook_information' => 'Access your facebook information',
'GitHub_information' => 'Access your github information'
]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment