php - laravel routes, how to group similar in one file -


i'm working laravel(5.2), , there lot routes in route file.

in fresh install noticed loading auth routes this.

route::auth(); 

nothing else there in routes.php file related auth routes.

in file, i've one

route::get('color/event', 'colorcontroller@index'); route::post('color/event', 'colorcontroller@post_message); ... ... 

and many others, want load in laravel way, route::color(); , should load color related routes

thanks time

you can try

route::resource('admin/settings','admin\settingscontroller'); 

and try command

$ php artisan routes 

Comments

Popular posts from this blog

Capture and play voice with Asterisk ARI -

c++ - Can not find the "fiostream.h" file -

java - Why database contraints in HSQLDB are only checked during a commit when using transactions in Hibernate? -