Lumen middleware sort (priority) : <p>I'm using <code>"laravel/lumen-framework": "5.7.*"</code></p>

<p>I have two middlewares, first one <code>AuthTokenAuthenticate</code> that should be applied to all the routes, so its defined in <code>bootstrap/app.php</code> like</p>

<pre><code>$app-&gt;middleware([
    App\Http\Middleware\AuthTokenAuthenticate::class
]);
</code></pre>

<p>Another middleware is defined like </p>

<pre><code>$app-&gt;routeMiddleware([
    'auth.token' =&gt; Vendor\Utilities\Middleware\AuthToken::class
]);
</code></pre>

<p>and will only be applied to some specific routes.</p>

<p>I need <code>auth.token</code> to be executed first, then <code>AuthTokenAuthenticate</code> but I can't find the way to do it because Lumen executes <code>$app-&gt;middleware</code> routes first. </p>

<p>Laravel has <code>$middlewarePriority</code> which is exactly what I need, but how can I handle it in Lumen? </p>
