How to set up a dynamic secondary directory in Laravel
曾经蜡笔没有小新
曾经蜡笔没有小新 2017-05-16 16:48:49
0
1
540

How to generate such a Group

  • /{area}/

    • /index

    • /mine

    • /shop

    • /market

Do we need to specify an {area} parameter for each route?

曾经蜡笔没有小新
曾经蜡笔没有小新

reply all (1)
为情所困

Like this

Route::group(['prefix'=>'/{area}'],function (\Illuminate\Routing\Router $route){ $route->get('a','GoodController@a'); $route->get('b','GoodController@b'); $route->get('c','GoodController@c'); });
    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!