Permissions directly on user

Laraship QuestionsCategory: ConfigurationPermissions directly on user
asteris asked 5 years ago
Can I give extra permissions directly to User ignoring the given Role permissions?
1 Answers
laraship Staff answered 5 years ago

Hello,

You can access permission to specific user programmaticaly by using the code below:

$user->givePermissionTo('permission_name');