Skip to content

Commit 65e7006

Browse files
authored
Fix Missing Kernel class in Laravel 11 (#200)
1 parent 8e4f31d commit 65e7006

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Commands/Bases/ControllerRequestCommandBase.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ class ControllerRequestCommandBase extends Command
2323
*/
2424
protected function isConvertEmptyStringsToNullRegistered()
2525
{
26+
if (Helpers::isNewerThanOrEqualTo('11')) {
27+
return true;
28+
}
29+
2630
$kernalClass = sprintf('\\%s\\Http\\Kernel', Helpers::getAppName());
2731
$kernal = $this->getLaravel()->make($kernalClass);
2832

0 commit comments

Comments
 (0)