wip fix
This commit is contained in:
1 parent
9bcd4432c6
commit
6f92f9e1d5
1209 files changed
+220940
No files matched your search
@@ -0,0 +1,24 @@
|
||||
<?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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user