Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

multiple routes same controller laravel

$router->get('/{home?}', 'SiteController@home')
       ->where('home', '(home|another_home_route)')
       ->name('home');
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #multiple #routes #controller #laravel
ADD COMMENT
Topic
Name
4+5 =