-1
我正在開發laravel的學校管理系統。我有很多類似的控制器在Laravel爲每個控制器的索引方法創建路由
控制器的工作人員在法指數
class controllerstaff extends controller {
public function index{
//here process of staff data
}
}
//this controller have `Route::get('/', '[email protected]');
及其他控制器
class controllerstudent extends controller {
public function index{
//here process of student data
}
}
//this controller have Route::get('/', '[email protected]');
如上不能正常工作。
任何人都可以告訴我如何爲索引方法的每個控制器創建路由。如果我們打包多個路由文件,那麼如何操作它以及如何訪問控制器和表單動作