コード例 #1
0
ファイル: SeedCommand.php プロジェクト: coolcodemy/bouncer
 /**
  * Execute the console command.
  *
  * @return mixed
  */
 public function handle()
 {
     $count = $this->seeder->count();
     if ($count == 0) {
         return $this->line('No bouncer seeders have been registered.');
     }
     $this->seeder->run();
     $this->info($this->getSeededMessage($count));
 }
コード例 #2
0
ファイル: Bouncer.php プロジェクト: marcusmoore/bouncer
 /**
  * Run the registered seeders.
  *
  * @return $this
  */
 public function seed()
 {
     $this->seeder->run();
     return $this;
 }