Created
December 23, 2016 08:07
-
-
Save Maras0830/53b306b6e1b100430c8b138f7416fce0 to your computer and use it in GitHub Desktop.
Laravel-passport-server-AuthServiceProvider
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 加入 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