예제 #1
0
 /**
  * Execute the console command.
  *
  * @return mixed
  */
 public function fire()
 {
     $position = Cache::get(self::class, 0);
     if (!isset($this->shouts[$position])) {
         return;
     }
     Shout::create(['message' => $this->shouts[$position]]);
     Cache::forever(self::class, ++$position);
 }
예제 #2
0
 /**
  * Execute the command.
  */
 public function handle()
 {
     Shout::create(['message' => $this->message]);
 }