Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Dec 16, 2019
1 parent 1bf9c32 commit 2cd9417
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/Illuminate/Foundation/Console/ModelMakeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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",
]);
}

Expand Down Expand Up @@ -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'],
];
}
Expand Down

0 comments on commit 2cd9417

Please sign in to comment.