We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1de57f commit 53c9218Copy full SHA for 53c9218
tests/TestCase.php
@@ -68,7 +68,13 @@ protected function getRoutes()
68
*/
69
protected function resolveApplicationHttpKernel($app)
70
{
71
- $app->singleton('Illuminate\Contracts\Http\Kernel', 'CodeZero\LocalizedRoutes\Tests\Stubs\Kernel');
+ // In Laravel 6+, we need to add the middleware to
72
+ // $middlewarePriority in Kernel.php for route
73
+ // model binding to work properly.
74
+ $app->singleton(
75
+ 'Illuminate\Contracts\Http\Kernel',
76
+ 'CodeZero\LocalizedRoutes\Tests\Stubs\Kernel'
77
+ );
78
}
79
80
/**
0 commit comments