This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
This package adds functionality to laravel which allows you to get user permissions through the o2client.
First add the following line to your composer.json .
"advanced-store/api-client": "dev-master"
Run this command in you CLI.
composer update
This package will require the advanced-store/oauth2-client
to work properly.
Run the following command if you are installing for the first time.
php artisan config:publish advanced-store/api-client
Add following lines to your app.php.
'AdvancedStore\ApiClient\ApiClientServiceProvider',
'YourAlias' => 'AdvancedStore\ApiClient\Facades\ApiClientFacade',,
Now you can get the user permissions by calling 'YourAlias'::getUserPermissions()
In combination with the advanced-store/access-filter
package the access-filter config will
be filled with the user permission as default.
- getUserPermissions()