我有角色和权限表,我想用Auth :: user()-> role或Auth :: user()-> pemission检查vue-cli中的用户角色和权限。
Passport::tokensCan([
'place-orders' => 'Place orders', -----> i want to check this dynamic
'check-status' => 'Check order status', -----> i want to check this dynamic
]);