same function for multiple routes laravel code example
Example 1: multiple routes same controller laravel
$router->get('/{home?}', 'SiteController@home')
->where('home', '(home|another_home_route)')
->name('home');
Example 2: laravel route multiple methods
Route::match(['get', 'post'], '/user', [
'uses' => 'AppController@user',
'as' => 'useraccess',
'roles'=> 'HomeController@useroles',
]);