Browsed by
Tag: routes

Manage Routes in Laravel

Manage Routes in Laravel

Assalamualiakum & Hi, It’s obvious, if you’re working on a large application which have a lot of routes needed, you will absolutely need to manage your routes – for me mainly the web and API routes. So here an example how I did – Create a helper to load multiple route in particular directory. The second part basically just specify to which directories to load the routes. This method inspired by Spatie – Laravel Collection Macros. You may use macro…

Read More Read More

Laravel: Managing Routes

Laravel: Managing Routes

Assalamualaikum, Recently I’ve meet some of my friends, and clients working with Laravel projects. It’s seems that, Route, managing routes is quiet painful when your application become bigger and you have to handle a lots of routes. So, what’s come out of my mind was, how to manage Laravel’s routes more efficient? I’ve come up with few possible options: Define more map methods in RouteServiceProvider, and call them – but this will make the RouteServiceProvider full with map methods, which…

Read More Read More