Skip to content

Commit

Permalink
Update ModelFromTableCommand.php
Browse files Browse the repository at this point in the history
redundant variable
  • Loading branch information
daverogers committed Oct 11, 2021
1 parent b34f226 commit f84b13e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Commands/ModelFromTableCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,7 @@ public function hydrateStub($stub, $table)

$types = [];

$columns = $table['columns'];

foreach ($columns as $column) {
foreach ($table['columns'] as $column) {
// fillable
if ($column['field'] != $primaryKey) {
$this->interpolate($stubFillable, "'{$column['field']}'");
Expand Down

0 comments on commit f84b13e

Please sign in to comment.