FareedR
1 week ago
111
9
Laravel

How can I sync new permission for specific roles

Posted 1 week ago by FareedR

How can I update new permission for admin role ? Currently admin can edit post . how can I make admin can delete post ? I'm using spatie laravel permissions. Anyone ? I'm aware with this function but didnt worked for me . should pluck ?

$user->syncPermissions() 

Please sign in or create an account to participate in this conversation.