Skip to content

Commit

Permalink
Added namespace var to scaffold generation
Browse files Browse the repository at this point in the history
  • Loading branch information
jamielsharief committed Aug 30, 2020
1 parent 20b6154 commit 7bdb989
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Console/Command/GenerateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -646,6 +646,8 @@ public function scaffold(array $data)
}
# Prepare Data
$vars = $meta['vars'][$model];
$vars['namespace'] = $data['namespace'];

$belongsTo = $meta['associations'][$model]['belongsTo'];
$hasMany = $meta['associations'][$model]['hasMany'];
$hasAndBelongsToMany = $meta['associations'][$model]['hasAndBelongsToMany'];
Expand Down

0 comments on commit 7bdb989

Please sign in to comment.