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.