21 lines
555 B
PHP
21 lines
555 B
PHP
<?php
|
|
|
|
namespace App\Console\Commands\Services\Tasks\Notification;
|
|
|
|
use App\Models\PersonalNotificationSend;
|
|
|
|
class StoreSend
|
|
{
|
|
public static function store($event_id, $user_id, $bookmaker_id, $alarm_level_id, $fieldname, $sendtype)
|
|
{
|
|
return PersonalNotificationSend::create([
|
|
'event_id' => $event_id,
|
|
'user_id' => $user_id,
|
|
'bookmaker_id' => $bookmaker_id,
|
|
'alarm_level_id' => $alarm_level_id,
|
|
'fieldname' => $fieldname,
|
|
(string) $sendtype => 1,
|
|
]);
|
|
}
|
|
}
|