Caffeinated\Modules\Console\Generators\MakeMigrationCommand::fire PHP Method

fire() public method

Execute the console command.
public fire ( ) : void
return void
    public function fire()
    {
        $arguments = $this->argument();
        $option = $this->option();
        $options = [];
        array_walk($option, function (&$value, $key) use(&$options) {
            $options['--' . $key] = $value;
        });
        unset($arguments['slug']);
        $options['--path'] = str_replace(realpath(base_path()), '', module_path($this->argument('slug'), 'Database/Migrations'));
        $options['--path'] = ltrim($options['--path'], '/');
        return $this->call('make:migration', array_merge($arguments, $options));
    }
MakeMigrationCommand