0

In this example priority always will be: auth > mid1 > mid2?

Route::middleware([
    'auth',
    'mid1',
    'mid2',
])->group(function () {
    //
});
Bolek Lolek
  • 577
  • 2
  • 9
  • 22
  • Possible duplicate of [Laravel order of middleware (Middleware Priority). Multi-tenant using Postgres](https://stackoverflow.com/questions/44487764/laravel-order-of-middleware-middleware-priority-multi-tenant-using-postgres) –  Feb 01 '18 at 20:04

1 Answers1

2

In a parent class there is

protected $middlewarePriority

You can override it in your app/Http/Kernel.php.

bahek2462774
  • 662
  • 7
  • 12