Spatie Laravel Permission Package Tutorial | User Role and Permission #2

preview_player
Показать описание
Laravel Permission package by Spatie
Associate users with roles and permissions
This package allows you to manage user permissions and roles in a database.
Assign Role and Permissions to any model

--You May Also Like --

==================FOLLOW ME ==================

Subscribe for New Releases!

(ask me questions!)

--- QUESTIONS? ---

Leave a comment below and I or someone else can help you.
For quick questions you may also want to ask me on Twitter, I respond almost immediately.

Thanks for all your support!
Рекомендации по теме
Комментарии
Автор

It is awesome how your work is divine! I am using Spatie vesion 6 and Laravel 10, and I got NO ERRORS AT ALL!

MarcelloPato
Автор

I was stuck on a bug for three days, thank you so much man ♥ ♥

mohamedmidou
Автор

I love the way your explanations are straight forward. Thanks for the amazing tutorials!!

michaelkamau
Автор

great bro!! Waiting for next episode again!

EduardoGoHome
Автор

waiting for next tut. this series is awesome as always

md.akib
Автор

sir, could you please provide the code

sitararafaqat
Автор

I have 2 user user1 and user2.
Both has same role which is staff.
Staff has 3 permission (add, edit, view).
My goal is I want to remove specific permission from specific user1 but want to keep the same role.
How can I achieve?

mangalmangalam
Автор

Hi I need to know how you tie all this stuff to a specific user in the database. I.e. user1 = superUser and user2 = basicUser. Surely this is tied up through the User Table some way. I cannot see how this is done. I.e. I get the roles and permissions etc. But how do I assign super user to myself as user1 in Laravel 8 so that routes I set up are only accessible by me. All others that log register and log on will only see their dashboard and whatever my web is about. I see the super admin dashboard.

markusaurelius
Автор

awesome vids bro,
Keep going ha =))

congdatt
Автор

#Bitfumes sir which extension are you using for orm function suggestion?

muhammadusmanafzal
Автор

i am doing exactly as you are doing but i am not getting data into the database

PriyankPatelDroid
Автор

i am facing a error !!

base table user_role not found while assignRole

how can i solve it ?

mishubhuiyan
Автор

Thanks, we are waiting for the continuation of this tutorial

imran_jayadi
Автор

So one has to write code in a random function that is being called to assign roles and then remove those lines again? Sure it works, but there must be a better way to do this right?

buckriderstudiotestaccount
Автор

Someone could help me? how can i see the return in the same way as he see in the web?

Sorry for my worst english.. :(

PlaysJP
Автор

Are you going to make it compatable with your multiauth package?

WillanCorreia
Автор

Hi. What is the name of the database program?

mugen
Автор

Why this problem?When i write $permission = post']);
$role = Role::findById(1);

But there have an error the dashboard like A `write post` permission already exists for guard `web`. And for this error in database there is nothing in role_has_permissions` table. please anyone help

funnyanimalsclub
Автор

can make a tutorial on permission package spatie using laravel 6 sir?

jezreel
Автор

What extension do you use for importing classes?

agilasadi