Files
2026-10-04 15:25:03 +02:00

25 lines
654 B
PHP

<?php
namespace App\Console\Commands\Services\Tasks\Notification;
use App\Models\PersonalNotificationSend;
class CheckSend
{
public static function check($event_id, $user_id, $bookmaker_id, $alarm_level_id, $fieldname, $sendtype)
{
$res = PersonalNotificationSend::where('event_id', $event_id)
->where('user_id', $user_id)
->where('bookmaker_id', $bookmaker_id)
->where('alarm_level_id', $alarm_level_id)
->where('fieldname', $fieldname)
->where($sendtype, 1)
->first();
if (! $res) {
return false;
}
return $res->id;
}
}