src/MigrationCommand.php
public function handle()
    {
        $table = $this->option('table');
        $softDelete = $this->option('softDelete') == 'true';

        if ($this->tableExists($table)) {
            $this->error('table is exists!');
        } else {
            if ($this->createMigration($table, $softDelete)) {
                $this->info('Migration created successfully.');
                Artisan::call('migrate');
            } else {
                $this->error(
                    "Couldn't create migration.\n Check the write permissions".
                    " within the database/migrations directory."
                );
            }
        }

        $this->line('');
    }
public function handle()
    {
        $table = $this->option('table');
        $softDelete = $this->option('softDelete') == 'true';

        if ($this->tableExists($table)) {
            $this->error('table is exists!');
        } else {
            if ($this->createMigration($table, $softDelete)) {
                $this->info('Migration created successfully.');
                Artisan::call('migrate');
            } else {
                $this->error(
                    "Couldn't create migration.\n Check the write permissions".
                    " within the database/migrations directory."
                );
            }
        }

        $this->line('');
    }
Execute the console command.

@return mixed