路由设置

/
Route::group(['namespace' => 'CompanyCenter','as' => 'company.','prefix' => 'company'],function(){
// 加载公司设置中的公司信息模板路由
Route::get('info','Setting\SettingController@info')->name('info');
}
 
namespace=>控制器的命名空间      as=>对路由命名前缀  prefix=>是对路由路由的前缀
posted @ 2019-03-07 19:21  天梯小蔡  阅读(122)  评论(0)    收藏  举报