Part 3/3 - How to use Roles and Permissions to protect routes with middleware in Laravel 10

preview_player
Показать описание
In this video, we will see how to use these Roles and Permissions to manage and protect the routes in the Laravel application.
So basically, protecting routes means when a user is trying to access a certain route, to which he does not have permission, then we will not allow the user to access that route/page.

We will be covering Roles & Permission with:-
Route group middleware.
Middleware via Route.
Middleware via Controller.
How to use Custom created Middleware for roles and permission.
Blade Directives.

Laravel 10 Spatie User Roles & Permissions tutorial from Scratch

Рекомендации по теме
Комментарии
Автор

Sir, thank you, for all 3 videos, right now i understood how apply roles & permission in my Laravel 11 App

Radiosabines
Автор

Thank you for easy & detailed explanation

amitramteke
Автор

these 3 parts are super helpful, thanks brother <3 and kindly starting making playlist of TALL STACK livewire alpine and stuff and integrate roles permissions there as well

ibrownlad
Автор

Thank you, my friend. We hope that you will build a commercial website for purchasing that includes a seller, a main supervisor, and a customer. Thank you again

programing
Автор

Now make a powerful e-commerce website sir with laravel 10

meeee
Автор

dear sir, i have a case, user have super-admin role which have all permissions, and the second role is normal admin which don't have permission to update user. the user can see the edit button, but can't access it, does the role conflict each other? how to solve it?

@can('update user')
<a href="{{ }}" class="btn btn-success">Edit</a>
@endcan

johnston
Автор

Hi sir, Thank you for uploading such a worthy series. Can you please upload a video on stripe payment integration just like you did for paypal?? It will be very helpful for my FYP. Kindly help me in this regard.

paradisedesigns-yb
Автор

hello sir, how do you get the login user page? mine doesn't show it. have you added it before the vid?

A.TORIQAZHAR
Автор

thank you for video but why is not in git hub?

xumoyiddinxolmuminov
Автор

can you make a video showing how i can log user activities

BrianShumba-mr
Автор

please make a video of the team multy-teancy package

sallemihabib
Автор

Great Tutorial Sir. Is there any github for this tutorial sir?

dsdgaming
Автор

sir i wach your playlist make a blog website using php and msql, this video is super and easy to undstand, please make a maintenance mode with website. please sir this is my humble request.🙏🙏🙏🙏🙏🙏🙏🙏🙏

hindibrave
Автор

that's not the dynamic approach. If user want to give/take access directly using the UI. It won't work because you are assigning the roles statically in routes using middleware.

ammadmaddy
Автор

i have a challenge for you. can you do make a video on dynamic form creation ? where a user is given a form and on that form's basis the user can create a table and also insert data into it. the first form creates a second form for user to enter the details inside it. can you do this ? i can not find this on whole internet. even ai is not able to do this. it is only able to let user create a table and insert data. if you can do this i would really be damned. i have seen the form myself on a website which i can not discuss here.

alonegamer
Автор

It is better to have php and mysql and only bootstrap 👍

tareq-uynb