Skip to content

Commit e0b999e

Browse files
committed
Fix for Laravel < 5.5
1 parent fd0ba49 commit e0b999e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/Console/WidgetMakeCommand.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,13 @@ class WidgetMakeCommand extends GeneratorCommand
3737
*/
3838
public function handle()
3939
{
40-
parent::handle();
40+
// hack for Laravel < 5.5
41+
dd(is_callable('parent::handle'));
42+
if (is_callable('parent::handle')) {
43+
parent::handle();
44+
} else {
45+
parent::fire();
46+
}
4147

4248
if (!$this->option('plain')) {
4349
$this->createView();

0 commit comments

Comments
 (0)