Skip to content

Commit 2ee9931

Browse files
committed
Fix optional builder option.
1 parent 994a4e9 commit 2ee9931

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/Generators/DataTablesHtmlCommand.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ class DataTablesHtmlCommand extends DataTablesMakeCommand
1616
{--dom= : The dom of the datatable.}
1717
{--buttons= : The buttons of the datatable.}
1818
{--table= : Scaffold columns from the table.}
19+
{--builder : Ignore, added to work with parent generator.}
1920
{--columns= : The columns of the datatable.}';
2021

2122
/**

src/Generators/DataTablesMakeCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function handle()
4242
{
4343
parent::handle();
4444

45-
if ($this->hasOption('builder') && $this->option('builder')) {
45+
if ($this->option('builder')) {
4646
$this->call('datatables:html', [
4747
'name' => $this->getNameInput(),
4848
'--columns' => $this->option('columns') ?: $this->laravel['config']->get(

0 commit comments

Comments
 (0)