/** * Check notifications marked as not send on the databases and send them */ public function sendRemaining() { foreach (Notifications::find('sent = "N"') as $notification) { $this->send($notification); } }