public function handle()
    {
        if ($this->shouldBeFailed()) {
            return;
        }

        $database = $this->config['database'] ?? null;
        $migrator = $this->resolveMigrator();

        if (! $this->shouldBeDelayed()) {
            $migrator->runInstall($this->model, $database);
            $migrator->runUp($this->model, $database);

            $this->delete();
        }
    }
public function handle()
    {
        if ($this->shouldBeFailed()) {
            return;
        }

        $database = $this->config['database'] ?? null;
        $migrator = $this->resolveMigrator();

        if (! $this->shouldBeDelayed()) {
            $migrator->runInstall($this->model, $database);
            $migrator->runUp($this->model, $database);

            $this->delete();
        }
    }
public function handle ( ) { if ( $ this -> shouldBeFailed ( ) ) { return ; } $ database = $ this -> config [ 'database' ] ?? null ; $ migrator = $ this -> resolveMigrator ( ) ; if ( ! $ this -> shouldBeDelayed ( ) ) { $ migrator -> runInstall ( $ this -> model , $ database ) ; $ migrator -> runUp ( $ this -> model , $ database ) ; $ this -> delete ( ) ; } }
Fire queue on creating a model.

@return void
Fire queue on creating a model .