修复 bug

This commit is contained in:
iVampireSP.com 2023-01-13 22:21:48 +08:00
parent a0bd776aa6
commit 3a7272834a
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132
2 changed files with 2 additions and 5 deletions

View File

@ -29,7 +29,7 @@ class Users extends Event implements ShouldBroadcastNow
*
* @return void
*/
public function __construct(User|int $user, $event, array|Model $data)
public function __construct(User|int $user, string $event, array|Model $data)
{
// init vars
$this->sent_at = Carbon::now();

View File

@ -12,21 +12,18 @@ class WebNotification extends Notification
use Queueable;
public array|Model $message = [];
public string $event = 'notification';
/**
* Create a new notification instance.
*
* @return void
*/
public function __construct(array|Model $message, string $event)
public function __construct(array|Model $message)
{
if ($message instanceof Model) {
$message = $message->toArray();
}
$this->message = $message;
$this->event = $event;
}
/**