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

1111. appearing after print sequence - php -

node.js - Express and Redis - If session exists for this user, don't allow access -

excel - I can't get the attachement of the email PHP -