laravel middleware route

Solutions on MaxInterview for laravel middleware route by the best coders in the world

showing results for - "laravel middleware route"
Sohan
12 Apr 2019
1Route::middleware([CheckAge::class])->group(function () {
2    Route::get('/', function () {
3        //
4    });
5
6    Route::get('admin/profile', function () {
7        //
8    })->withoutMiddleware([CheckAge::class]);
9});