php - Laravel5.1 Route set all URL to Controller -


i think get/post visit controller

route::match(['get','post']. '{controller}/{method}','$controller\$controller_controller@$method'); 

but error;

how localhos/website/user/login ,go find controllers/user/user_controller@login?

i thing searching this

route::get("/my/path", "mycontroller@mymethod"); route::post("/my/path", "mycontroller@mymethod"); 

or can use route::resource


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -