Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel route multiple methods

Route::match(['get', 'post'], '/user', [
    'uses' => 'AppController@user',
    'as'   => 'useraccess',
    'roles'=> 'HomeController@useroles', 
]);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #laravel #route #multiple #methods
ADD COMMENT
Topic
Name
5+7 =