Skip to content

Commit

Permalink
Update WidgetGenerator.php
Browse files Browse the repository at this point in the history
debug
  • Loading branch information
imanghafoori1 authored Jan 21, 2018
1 parent 1176d67 commit a0c1bb7
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/WidgetGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,24 @@ class WidgetGenerator extends LaravelGeneratorCommand
*
* @return void
*/
public function fire()
public function handle()
{
$this->makeWidgetClass();

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

/**
* Execute the console command.
*
* @return void
*/
public function fire()
{
$this->handle();
}

/**
* Create a new view file for the widget.
Expand Down

0 comments on commit a0c1bb7

Please sign in to comment.