时间:2021-07-01 10:21:17 帮助过:18人阅读
Route::controller('demos', 'Demo2Controller');
classDemo2ControllerextendsController
{
/**
* Responds to requests to GET /users
*/
public function getIndex()
{
//return1;
}
/**
* Responds to requests to GET /users/show/1
*/
public function getShow($id)
{
//return $id;
}
/**
* Responds to requests to GET /users/admin-profile
*/
public function getAdminProfile()
{
//
}
/**
* Responds to requests to POST /users/profile
*/
public function postProfile()
{
//
}
}
访问 http://localhost:8000/demos/index
以上就介绍了laravel5 路由配置 技巧,包括了方面的内容,希望对PHP教程有兴趣的朋友有所帮助。