duxet\Rethinkdb\Console\Model\ModelMakeCommand::fire PHP Method

fire() public method

Execute the console command.
public fire ( ) : void
return void
    public function fire()
    {
        if (parent::fire() !== false) {
            if ($this->option('migration')) {
                $table = Str::plural(Str::snake(class_basename($this->argument('name'))));
                $this->call('make:rethink-migration', ['name' => "create_{$table}_table", '--create' => $table]);
            }
        }
    }