multiple routes same controller laravel

31

$router->get('/{home?}', 'SiteController@home')
       ->where('home', '(home|another_home_route)')
       ->name('home');

Comments

Submit
0 Comments