Here I want to show, how to extend existing route – get, post, etc. for your application.
I’m going to create a new route
Route::setting('module'), which will create all necessary route setup.
Now register this new macro in your
Then, you can start use the new route.
To use this new route, you need a controller.
php artisan make:controller Settings/ApplicationSettingController -r
Then you may add in
routes/web.php to register a new route setting.
In this case, you just need to add
php artisan route:list. You should get something like the following: