Skip to content

Commit 5cf32fc

Browse files
committed
Fix #85
1 parent c746a23 commit 5cf32fc

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

src/Console/WidgetMakeCommand.php

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,21 @@ class WidgetMakeCommand extends GeneratorCommand
3131
protected $type = 'Widget';
3232

3333
/**
34-
* Execute the console command.
34+
* Execute the console command for Laravel >= 5.5
35+
*
36+
* @return void
37+
*/
38+
public function handle()
39+
{
40+
parent::handle();
41+
42+
if (!$this->option('plain')) {
43+
$this->createView();
44+
}
45+
}
46+
47+
/**
48+
* Execute the console command for Laravel < 5.5
3549
*
3650
* @return void
3751
*/

0 commit comments

Comments
 (0)