Skip to content

Instantly share code, notes, and snippets.

@Maras0830
Created December 23, 2016 08:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Maras0830/53b306b6e1b100430c8b138f7416fce0 to your computer and use it in GitHub Desktop.
Save Maras0830/53b306b6e1b100430c8b138f7416fce0 to your computer and use it in GitHub Desktop.
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