예제 #1
0
 public static function getUnsentAlert($item, $itemType)
 {
     $currentAlertNotSent = Alert::where('alertable_id', $item->getKey())->where('alertable_type', $itemType)->where('sent', 0)->first();
     return $currentAlertNotSent;
 }