Skip to content
Permalink
Browse files

formatting

  • Loading branch information
taylorotwell committed Dec 16, 2019
1 parent 1bf9c32 commit 2cd9417064123fd6c9114788d331659ede568dbf
Showing with 2 additions and 9 deletions.
  1. +2 −9 src/Illuminate/Foundation/Console/ModelMakeCommand.php
@@ -105,10 +105,10 @@ protected function createMigration()
*/
protected function createSeeder()
{
$seederName = Str::plural(Str::ucfirst($this->argument('name')));
$seeder = Str::studly(class_basename($this->argument('name')));

$this->call('make:seed', [
'name' => "{$seederName}Seeder",
'name' => "{$seeder}Seeder",
]);
}

@@ -152,19 +152,12 @@ protected function getOptions()
{
return [
['all', 'a', InputOption::VALUE_NONE, 'Generate a migration, factory, and resource controller for the model'],

['controller', 'c', InputOption::VALUE_NONE, 'Create a new controller for the model'],

['factory', 'f', InputOption::VALUE_NONE, 'Create a new factory for the model'],

['force', null, InputOption::VALUE_NONE, 'Create the class even if the model already exists'],

['migration', 'm', InputOption::VALUE_NONE, 'Create a new migration file for the model'],

['seed', 's', InputOption::VALUE_NONE, 'Create a new seeder file for the model'],

['pivot', 'p', InputOption::VALUE_NONE, 'Indicates if the generated model should be a custom intermediate table model'],

['resource', 'r', InputOption::VALUE_NONE, 'Indicates if the generated controller should be a resource controller'],
];
}

0 comments on commit 2cd9417

Please sign in to comment.
You can’t perform that action at this time.