Skip to content

Commit 53c9218

Browse files
committed
Add comment
1 parent d1de57f commit 53c9218

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tests/TestCase.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,13 @@ protected function getRoutes()
6868
*/
6969
protected function resolveApplicationHttpKernel($app)
7070
{
71-
$app->singleton('Illuminate\Contracts\Http\Kernel', 'CodeZero\LocalizedRoutes\Tests\Stubs\Kernel');
71+
// 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+
);
7278
}
7379

7480
/**

0 commit comments

Comments
 (0)