Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel route group

Route::middleware(['first', 'second'])->group(function () {
    Route::get('/', function () {
        // Uses first & second middleware...
    });
 
    Route::get('/user/profile', function () {
        // Uses first & second middleware...
    });
});
Source by laravel.com #
 
PREVIOUS NEXT
Tagged: #laravel #route #group
ADD COMMENT
Topic
Name
3+4 =