Silber\Bouncer\UpgradeCommand::handle PHP Method

handle() public method

Execute the console command.
public handle ( ) : void
return void
    public function handle()
    {
        $source = realpath(__DIR__ . '/../migrations/upgrade_to_bouncer_1_dot_0.php');
        $file = date('Y_m_d_His') . '_upgrade_to_bouncer_1_dot_0.php';
        $target = $this->laravel->databasePath() . '/migrations/' . $file;
        copy($source, $target);
        $this->line("<info>Created Migration:</info> {$file}");
        if (!$this->input->getOption('no-migrate')) {
            $this->call('migrate');
        }
    }
UpgradeCommand