Answers for "laravel route multiple methods"

PHP
2

multiple routes same controller laravel

$router->get('/{home?}', 'SiteController@home')
       ->where('home', '(home|another_home_route)')
       ->name('home');
Posted by: Guest on October-05-2020
0

laravel route multiple methods

Route::match(['get', 'post'], '/user', [
    'uses' => 'AppController@user',
    'as'   => 'useraccess',
    'roles'=> 'HomeController@useroles', 
]);
Posted by: Guest on April-24-2020

Code answers related to "laravel route multiple methods"

Browse Popular Code Answers by Language