Skip to content

Commit e1f4af3

Browse files
committed
Add table option to make command.
1 parent 7c9c362 commit e1f4af3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Generators/DataTablesMakeCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ class DataTablesMakeCommand extends GeneratorCommand
1818
{--model : The name of the model to be used.}
1919
{--model-namespace= : The namespace of the model to be used.}
2020
{--action= : The path of the action view.}
21+
{--table= : Scaffold columns from the table.}
2122
{--dom= : The dom of the datatable.}
2223
{--buttons= : The buttons of the datatable.}
2324
{--columns= : The columns of the datatable.}';
@@ -54,6 +55,7 @@ public function handle()
5455
'datatables-buttons.generator.dom',
5556
'Bfrtip'
5657
),
58+
'--table' => $this->option('table'),
5759
]);
5860
}
5961

0 commit comments

Comments
 (0)