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



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2U4mtkt
via IFTTT

Aucun commentaire:

Enregistrer un commentaire