Monday, April 17, 2017

Add additional route file in laravel

Tags



Add a new route file in laravel has never been much easier. All you have to do is follow the steps below.

 1) Create a new route file in route folder. (Ex. test_route.php)


2) Navigate to RouteServiceProvider.php (It should located at app/Providers/RouteServiceProvider.php) .

3) Find this line of code -> require base_path('routes/web.php');

3) Add your newly created route file.


4) Try and write some path into your new route file.


5) Run the path and it should be working.


If you want to get in touch with more tutorial, add me on google+ or like and follow our facebook page for more! Obstrum Facebook Page


EmoticonEmoticon