Spatie Laravel Permission Package Tutorial | Using Middleware for permission and role #4

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.
Using Middleware for permission and role

--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!
Рекомендации по теме
Комментарии
Автор

YOU SEE THIS GUY, NAMBARR ONE LARAVEL GUY,

i never had good sleep before this package because every system i created, that had custom role management, i never felt the sense of security. because some other guy on youtube poorly described spattie permission package, i avoided using it. but with this i think i'm on the right track to a good night sleep :)

whitewisdom
Автор

I'm new to laravel but you helped me so much

farookrajput
Автор

Full of this series tutorial are watched by me, Thanks for helpful tutorial !

ម៉ុកគង់
Автор

You are great man, your concept and way of teaching is so good.

mahmoudmohamed-ooxs
Автор

Thankyou so much brother! your doing greate stuff! Keep doing! Love your content! ♥

dr.d
Автор

Awesome tutorials. .. Im new to laravel but these helped me so much...

shavindipathirana
Автор

This serious helped me a lot. Thanks BitFumes. Go Ahead Bro.

sumonchandrashil
Автор

Hi ankur sir you are assigning a role or permission to the routes at web.php.If i don't want to assign middleware to the route as middleware('permission:edit post')?can i assign it another way because if i don't want to assign it manually by typing the 'permission:edit post' i want when a specific routes will call associated roles or permission my logic get??please answer me thanks in advance!

mubeenali
Автор

#Bitfumes, Sir we have added middlewares hard coded. but how we can change them dynamically from front end. Because client have to change role and permission from frontend. Sir plz reply

muhammadusmanafzal
Автор

But how can you change the view according to the user's role? Because I can occupy the middleware but I always redirect to the HOME view when I log in.

For example:
- admin redirect to the dashboard view.
- Seller redirect to Sales view.
- Viewer redirect to report view.

alexo
Автор

Awsome great detailed tutorials, but if you can make a tutorial multi auth on Spatie permission package for redirecting users depend on their role, that would be great

amjadataallah
Автор

HI Thanks for the tutorial, but I am struggling to manage users after login to send them different dashboards. How can send the users to different inteterfaces when they login?

sarder
Автор

How to restrict the access to the entire folder contents? For example, we have folder as administrator and folder as user, the user shouldn't have access to all files that are located to administrator (all controllers which are created for admin).

IRHostingCo
Автор

But for me permission middleware is not working. 🤨

Tharunkumar
Автор

You are great man, your concept and way of teaching is so good.

vishalsrivastava