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

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

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

android - How to create dynamically Fragment pager adapter -