src/Commands/MakeAPIModelCommand.php
public function handle()
    {
        if (parent::handle() !== false) {
            if ($this->option('with-repository')) {
                $this->comment('making repository');
                $this->call('api:new-repository', ['name' => $this->argument('name')]);
            }
            if ($this->option('with-migration')) {
                $this->comment('making migration');
                $name = $this->argument('name');
                $table = str_plural(snake_case($name));
                $this->call('make:migration', ['name' => "create_{$table}_table", '--create' => $table]);

            }
        }
    }
public function handle()
    {
        if (parent::handle() !== false) {
            if ($this->option('with-repository')) {
                $this->comment('making repository');
                $this->call('api:new-repository', ['name' => $this->argument('name')]);
            }
            if ($this->option('with-migration')) {
                $this->comment('making migration');
                $name = $this->argument('name');
                $table = str_plural(snake_case($name));
                $this->call('make:migration', ['name' => "create_{$table}_table", '--create' => $table]);

            }
        }
    }
Execute the console command.

@return void