dimanche 31 mars 2019

how to check role and permission in passport scope token in laravel and vue-cli

i have role and permission table and I want to check user role and permission in vue-cli with Auth::user()->role or Auth::user()->pemission.

Passport::tokensCan([
    'place-orders' => 'Place orders', -----> i want to check this dynamic
    'check-status' => 'Check order status', -----> i want to check this dynamic
]);
enter code here



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire