Laravel Roles & Permissions Project | #10 Users - Assign Roles | Spatie | PHP Tech Life Hindi

  Рет қаралды 1,960

PHP TECH LIFE

PHP TECH LIFE

Күн бұрын

Пікірлер: 14
@fawad0301
@fawad0301 4 ай бұрын
I was waiting for this video thanks for sharing the knowledge. and also waiting for last episode.
@techgainers
@techgainers 4 ай бұрын
Thankyou Sir
@JafarH-ip5qh
@JafarH-ip5qh 4 ай бұрын
🎉
@affipets
@affipets 3 ай бұрын
I have an issue when i add permission or role, then by deafult sanctum guard is use.
@ajpatelofficial6354
@ajpatelofficial6354 4 ай бұрын
When we delete the user who has admin and writer roles, is it necessary to remove roles before deleting the user, or will it be deleted automatically from the database?
@PHPTechLife
@PHPTechLife 4 ай бұрын
when you delete a user it's assigned role will delete automatically.
@future_of_coding
@future_of_coding 4 ай бұрын
@phptechlife Have a question? why don't You use, resource route?
@PHPTechLife
@PHPTechLife 4 ай бұрын
Yes, you can use resource route
@future_of_coding
@future_of_coding 4 ай бұрын
@@PHPTechLife main to karta hu, Just asking why don't you use, is there any reason, it is bad practice if I use resource route..
@PHPTechLife
@PHPTechLife 4 ай бұрын
@@future_of_coding Look my subscribers are not experts like you, so that's the reason I don't use the resource route in my videos.
@Ahmed-kl7kd
@Ahmed-kl7kd 2 ай бұрын
Sir $hasroles =$user->roles->pluck('id') Sir id null arahi hai empty array
@uniqwibe_official
@uniqwibe_official 19 күн бұрын
$hasRoles = $users->roles ? $users->roles->pluck('id') : collect(); // Return an empty collection if no roles ahmad have to write this code
@SonuKumawat11
@SonuKumawat11 4 ай бұрын
jab me url se kisi ko access kar rha to toh wo denied nahi kr raha , laravel 11 me spatie ka middleware kaise lagau
@PHPTechLife
@PHPTechLife 4 ай бұрын
Yes, I will cover this in next video.
Одну кружечку 😂❤️
00:12
Денис Кукояка
Рет қаралды 861 М.
Мама у нас строгая
00:20
VAVAN
Рет қаралды 12 МЛН
Players push long pins through a cardboard box attempting to pop the balloon!
00:31
I thought one thing and the truth is something else 😂
00:34
عائلة ابو رعد Abo Raad family
Рет қаралды 14 МЛН
No Swagger in .NET 9 !? Discover the Best Alternatives !
7:27
Spaghetti Code
Рет қаралды 1,1 М.
Одну кружечку 😂❤️
00:12
Денис Кукояка
Рет қаралды 861 М.