laravel same route different group

Solutions on MaxInterview for laravel same route different group by the best coders in the world

showing results for - "laravel same route different group"
Eduardo
17 Aug 2017
1$myroutes =  function () {
2    Route::get('/news', 'NewsController@index')->name('news_index');
3    Route::get('/article', 'ArticleController@index')->name('article_index');
4};
5
6Route::group(['prefix' => 'chemistry'], $myroutes);
7Route::group(['prefix' => 'math'], $myroutes);
8Route::group(['prefix' => 'geography'], $myroutes);
9
Sofia
08 Mar 2018
1 {!!URL::to('chemistry/news')!!}
2 {!!URL::to('geography/news')!!}
3 {!!URL::to('math/news')!!}
4