【发布时间】:2016-08-09 10:53:52
【问题描述】:
我正在 laravel 中开发一个学校管理系统。我有很多控制器,比如
方法索引中的控制人员
class controllerstaff extends controller {
public function index{
//here process of staff data
}
}
//this controller have `Route::get('/', 'controllerstaff@index');
和其他控制器
class controllerstudent extends controller {
public function index{
//here process of student data
}
}
//this controller have Route::get('/', 'controllerstudent@index');
如上不能正常工作。
任何人都可以告诉我如何为索引方法的每个控制器创建路由。如果我们创建很多路由文件,那么如何操作它以及如何访问控制器和表单操作
【问题讨论】: