Closed ivanvermeyen closed 6 months ago
Hi,
My package needs to run a middleware in the web group in a certain order/priority.
web
Before Laravel 11, I could stub the Kernel.php file in my base TestCase:
Kernel.php
protected function resolveApplicationHttpKernel($app): void { $app->singleton( 'Illuminate\Contracts\Http\Kernel', 'My\Tests\Stubs\Kernel' ); }
But as of Laravel 11, this is now handled in bootstrap/app.php. Is there a way to stub this file too?
bootstrap/app.php
Hi,
My package needs to run a middleware in the
web
group in a certain order/priority.Before Laravel 11, I could stub the
Kernel.php
file in my base TestCase:But as of Laravel 11, this is now handled in
bootstrap/app.php
. Is there a way to stub this file too?