Skip to content

Commit

Permalink
Fixes bug #59
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeAlhayek committed Apr 25, 2018
1 parent 1a40cce commit 50daade
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"controller creator","code generator","generators","generator",
"code generator", "laravel crud","laravel code generator",
"laravel-code-generator","code-generator","CrestApps",
"Alhayek", "Mike Alhayek","Majd Alhayek"
"Alhayek", "Mike CallCompleterFullNameAlhayek","Majd Alhayek"
],
"authors": [
{
Expand Down
4 changes: 3 additions & 1 deletion src/Commands/Bases/ControllerCommandBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ class ControllerCommandBase extends Command
*/
protected function isConvertEmptyStringsToNullRegistered()
{
$kernal = $this->getLaravel()->make(\App\Http\Kernel::class);
$kernalClass = sprintf('\\%s\\Http\\Kernel', Helpers::getAppName());

$kernal = $this->getLaravel()->make($kernalClass);

return $kernal->hasMiddleware(\Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class);
}
Expand Down

0 comments on commit 50daade

Please sign in to comment.