App\Console\Commands\DestinyVersionCommand::fire PHP Method

fire() public method

Execute the console command.
public fire ( ) : mixed
return mixed
    public function fire()
    {
        $old = version();
        $new = version(true);
        $this->comment("Previous: " . $old . " New: " . $new);
        if ($old !== $new) {
            $this->call('bugsnag:deploy', ['--revision' => $new]);
        }
    }
DestinyVersionCommand