In this example priority always will be: auth > mid1 > mid2?
Route::middleware([
'auth',
'mid1',
'mid2',
])->group(function () {
//
});
In this example priority always will be: auth > mid1 > mid2?
Route::middleware([
'auth',
'mid1',
'mid2',
])->group(function () {
//
});
In a parent class there is
protected $middlewarePriority
You can override it in your app/Http/Kernel.php.