Laravel 10 multi auth. Redirect users and admins to different pages. Using Laratrust authentication.

preview_player
Показать описание
Laravel 10 multi auth project with source code.

In this video I show how to create laravel 10 multi authentication for users like Admin, User, Student, Teacher.... In the previous video we have created a Laravel 10 CRUD (Create, Read, Update, Delete) project. For this laravel 10 authentication I use Laratrust package. We show different page for admin and user, and show different menu for admin and for user. This multi auth system works with Laravel 10 jetstream, and with Laravel Breeze. After the laravel admin and user login we redirect them to different pages. We using laravel roles and permissions as well.

00:00 Intro
00:31 Laravel 10 Role Permission
02:09 Install Laratrust roles and permisson management package for Laravle 10
11:15 Assign user to admin or user Role (Assign user to a role)
15:35 Using Laratrust Administration Panel to manage roles and permissions in laravel 10 project
17:25 Show and Hide menu item for user with different roles and permissions

#laravel #laravelauthentication
#Laravel10MuliAuth #Laravel10RolesPermissions #Laratrust #LaravelAuthentication
Рекомендации по теме
Комментарии
Автор

Excellent video, thank you so much.

just a question :
if i want to change who can acces to the /laratrust admin pannel and make it only for admin
how i can do it please ?

elliot
Автор

Excellent, thank you very much, you would still record a video applying multi-tenant

josesalcedo
Автор

Hi, I've been looking for several tutorials so far yours is what I manage to understand and implement. Thank you for making it straight forward for beginners like me. I have a clarification though. I wanted to implement checking of permissions in the controller instead of the blade file just like what you did in the todoController however I am getting Undefined method haspermission. I already added references (interface and traits in user classes). Im lost. Sorry please help me,

diwanihime
Автор

Good job. Thank you. Can you show laravel 10 + vue 3 crud?

ezikx
Автор

Excellent, thank you very much, you would still record a video applying multi-tenant

josesalcedo