/** * 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); }
/** * Execute the command. */ public function handle() { Shout::create(['message' => $this->message]); }