Skip to content

Commit

Permalink
Fix #85
Browse files Browse the repository at this point in the history
  • Loading branch information
arrilot committed Sep 23, 2017
1 parent c746a23 commit 5cf32fc
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion src/Console/WidgetMakeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,21 @@ class WidgetMakeCommand extends GeneratorCommand
protected $type = 'Widget';

/**
* Execute the console command.
* Execute the console command for Laravel >= 5.5
*
* @return void
*/
public function handle()
{
parent::handle();

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

/**
* Execute the console command for Laravel < 5.5
*
* @return void
*/
Expand Down

0 comments on commit 5cf32fc

Please sign in to comment.