Skip to content

Commit

Permalink
Fix for Laravel < 5.5
Browse files Browse the repository at this point in the history
  • Loading branch information
arrilot committed Oct 4, 2017
1 parent fd0ba49 commit e0b999e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Console/WidgetMakeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,13 @@ class WidgetMakeCommand extends GeneratorCommand
*/
public function handle()
{
parent::handle();
// hack for Laravel < 5.5
dd(is_callable('parent::handle'));
if (is_callable('parent::handle')) {
parent::handle();
} else {
parent::fire();
}

if (!$this->option('plain')) {
$this->createView();
Expand Down

0 comments on commit e0b999e

Please sign in to comment.