src/Console/StatusCommand.php
/**
     * Execute the console command.
     *
     * @return void
     */
Execute the console command.
@return void
Execute the console command . @return void
public function handle()
    {
        $this->seeder->setConnection($this->option('database'));
        if (!$this->seeder->repositoryExists()) {
            $this->error('No seeds found.');
            return;
        }
        $ran = $this->seeder->getRepository()->getRan();
        if (count($seeds = $this->getStatusFor($ran)) > 0) {
            $this->table(['Ran?', 'Seed'], $seeds);
        } else {
            $this->error('No seeds found');
        }
    }
public function handle ( ) { $ this -> seeder -> setConnection ( $ this -> option ( 'database' ) ) ; if ( ! $ this -> seeder -> repositoryExists ( ) ) { $ this -> error ( 'No seeds found.' ) ; return ; } $ ran = $ this -> seeder -> getRepository ( ) -> getRan ( ) ; if ( count ( $ seeds = $ this -> getStatusFor ( $ ran ) ) > 0 ) { $ this -> table ( [ 'Ran?' , 'Seed' ] , $ seeds ) ; } else { $ this -> error ( 'No seeds found' ) ; } }
Execute the console command.
Execute the console command .