打赏

laravel 路由分組

laravel 路由分組

Route::group(['prefix' => 'admin'], function () {
    $namespacePrefix="\\App\\Http\\Controllers\\Admin\\";
    Route::get('/index', ['uses' => $namespacePrefix . 'IndexController@index', 'as' => 'index']);
    Route::get('/product',['uses' => $namespacePrefix . 'BusinessProductController@index', 'as' => 'index']);
    Route::get('/productadd',['uses' => $namespacePrefix . 'BusinessProductController@add', 'as' => 'add']);
});

 

posted on 2019-03-18 09:44  头大的冯冯  阅读(122)  评论(0编辑  收藏  举报

导航