In Part 117 of the Laravel 9 Tutorial to create a Multi-Vendor E-commerce Website in Laravel 9, we will prevent account routes from unauthorized access.
1) Update web.php file:-
We will update the web.php file and add a middleware auth group in which we will add account and password routes that we have added in the last few videos.
2) Update Authenticate.php file:-
We will also update the Authenticate.php file to redirect users to the login/register page if not logged in and want to access account pages.
3) Update web.php file:-
We will also update the login/register route in the web.php file.
Watch the Laravel Basics series to know more about Routing:-
[ Ссылка ]
Now all the front routes that we want to prevent from users like account and password routes can not be accessible without login.
In the next video, we are going to learn Laravel Helpers and will use it for counting cart items and other functionalities.
►Laravel 9 Tutorial (Create Multi-Vendor E-commerce Website) - [ Ссылка ]
►Laravel 9 Playlist - [ Ссылка ]
►Click here to subscribe for Laravel & other updates - [ Ссылка ]
Popular Stack Developers Series that can help you:-
►Laravel Tutorial for Beginners - [ Ссылка ]
►GIT Tutorial for Beginners - [ Ссылка ]
►Laravel API Tutorial - [ Ссылка ]
►Laravel Interview Questions - [ Ссылка ]
►jQuery Tutorial - [ Ссылка ]
►Laravel Basic E-commerce Series - [ Ссылка ]
►Laravel Dating Series - [ Ссылка ]
►Join this channel to get the complete source code of all series:
[ Ссылка ]
Follow Stack Developers on Social Media to get updates and resolve your queries
►Like Facebook Page to get updates - [ Ссылка ]
►Join Facebook Group to resolve your queries - [ Ссылка ]
►Follow on Instagram - [ Ссылка ]
►Follow on GitHub - [ Ссылка ]
#laravel9 #laravel9tutorial #laravel
Ещё видео!