Skip to content

Commit

Permalink
Add template var for model generation
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffreyWay committed Sep 1, 2014
1 parent b319d4d commit b7f61a9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Way/Generators/Commands/ModelGeneratorCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ protected function getFileGenerationPath()
protected function getTemplateData()
{
return [
'NAME' => ucwords($this->argument('modelName'))
'NAME' => ucwords($this->argument('modelName')),
'NAMESPACE' => $this->getNamespace('root')
];
}

Expand Down

0 comments on commit b7f61a9

Please sign in to comment.