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

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners