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
Post a Comment