Skip to content

Commit

Permalink
Fix Missing Kernel class in Laravel 11. Fix #199
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeAlhayek committed Mar 28, 2024
1 parent 8e4f31d commit 7685c48
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Commands/Bases/ControllerRequestCommandBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ class ControllerRequestCommandBase extends Command
*/
protected function isConvertEmptyStringsToNullRegistered()
{
if (Helpers::isNewerThanOrEqualTo('11')) {
return true;
}

$kernalClass = sprintf('\\%s\\Http\\Kernel', Helpers::getAppName());
$kernal = $this->getLaravel()->make($kernalClass);

Expand Down

0 comments on commit 7685c48

Please sign in to comment.