where do i place the lines for permissions #2407
Unanswered
CrazySeppe
asked this question in
Q&A
Replies: 2 comments 6 replies
-
Eloquent: Getting Started - Laravel - The PHP Framework For Web Artisans
where you need it, also read UI options examples, or search implementation info on internet |
Beta Was this translation helpful? Give feedback.
6 replies
-
This demo may help as well: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
in the following link you guys give an example of lines of code that u can you to give permissions but no where it says what file we have to fill this in, I also assume im the only one who doesnt know but ye.
https://spatie.be/docs/laravel-permission/v5/basic-usage/role-permissions
code:
$user->assignRole('writer');
// You can also assign multiple roles at once
$user->assignRole('writer', 'admin');
// or as an array
$user->assignRole(['writer', 'admin']);
--> end of code
is "user" is being used as the table from sql?
Beta Was this translation helpful? Give feedback.
All reactions