Exemplo n.º 1
0
 public function setTweetAsSent($id)
 {
     $tweet = Tweet::find($id);
     $tweet->sent = true;
     if (!$this->option('debug')) {
         $tweet->save();
     }
     if ($this->option('debug')) {
         $this->info('We should have set tweet->id ' . $tweet->id . ' to sent');
     }
 }