Skip to content

Commit

Permalink
Remove namespace from factory filename when creating from model make …
Browse files Browse the repository at this point in the history
…command (#23983)
  • Loading branch information
guilhermeportela authored and taylorotwell committed Apr 25, 2018
1 parent 6bf8c8a commit 9fae4d5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Illuminate/Foundation/Console/ModelMakeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,10 @@ public function handle()
*/
protected function createFactory()
{
$factory = Str::studly(class_basename($this->argument('name')));

$this->call('make:factory', [
'name' => $this->argument('name').'Factory',
'name' => "{$factory}Factory",
'--model' => $this->argument('name'),
]);
}
Expand Down

0 comments on commit 9fae4d5

Please sign in to comment.