How to add Custom Route File In Laravel | Add Multiple Route Files in Laravel in HINDI
In this video, We are going to learn How to add Custom Route File In Larave ?? We'll Add Multiple Route Files in Laravel I have discussed Adding Multiple Route Files in Laravel. While adding functionalities to my website, the need arose to better organize my routes in separate files, and for this reason, I come to share with you today.
It is a very simple task since you will only have to make the modifications to the file
app / Providers / RouteServiceProvider.php in the mapWebRoutes function by adding require base_path ('routes / filename.php');
Example:
We create a file called admin.php that will contain the routes related to the admin, now we simply register it in the mapWebRoutes function as follows require base_path ('routes / admin.php');
Our Playlist:
Computer Facts:https://www.youtube.com/playlist?list=PLT51dtioU1pMRgv8kNYajmgJfA1W1zwqv
Laravel User Management System :
https://www.youtube.com/playlist?list=PLT51dtioU1pPNxwwo3dWfkUCKI2BXnc_H
Laravel Auth System :
https://www.youtube.com/playlist?list=PLT51dtioU1pPmtFnYQ5WRnYvvL1zW74wl
Laravel And Vuejs
https://www.youtube.com/playlist?list=PLT51dtioU1pN0mQqQ5RM5nE8uOfzsqml2
Laravel Eloquent Relationships
https://www.youtube.com/playlist?list=PLT51dtioU1pO7YgLOyNY0KF_3ny79D0BV
#laravel #LaravelRoutes #MultipleRouteFiles
Please subscribe to my channel and share the video with your friends.