Laravel 9 Tutorial from the beginning:- https://www.youtube.com/playlist?list=PLLUtELdNs2ZYTlQ97V1Tl8mirS3qXHNFZ In Part-7 of the https://youtu.be/T0Xm6Xm_Dvw, we will start working on Multi Authentication for our Laravel 9 Multi Vendor E-commerce Website.

We will use Guards to protect the admin routes including the dashboard route.

Now we will create an Admin Middleware file by running the below command:- php artisan make:middleware Admin Update kernel.php file:-

Add admin middleware group and move admin dashboard route under it to protect it from unauthorised access.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners