Answers for "laravel same route different group"

PHP
0

laravel same route different group

$myroutes =  function () {
    Route::get('/news', 'NewsController@index')->name('news_index');
    Route::get('/article', 'ArticleController@index')->name('article_index');
};

Route::group(['prefix' => 'chemistry'], $myroutes);
Route::group(['prefix' => 'math'], $myroutes);
Route::group(['prefix' => 'geography'], $myroutes);
Posted by: Guest on March-31-2021
0

laravel same route different group

{!!URL::to('chemistry/news')!!}
 {!!URL::to('geography/news')!!}
 {!!URL::to('math/news')!!}
Posted by: Guest on March-31-2021

Code answers related to "laravel same route different group"

Browse Popular Code Answers by Language