D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
management-zone
/
htdocs
/
management-zone.com
/
app
/
Filename :
Guest.php
back
Copy
<?php namespace App; use Illuminate\Database\Eloquent\Model; use Illuminate\Notifications\Notifiable; use NotificationChannels\WebPush\HasPushSubscriptions; class Guest extends Model { use Notifiable, HasPushSubscriptions; protected $fillable = [ 'endpoint', ]; /** * Determine if the given subscription belongs to this user. * * @param \NotificationChannels\WebPush\PushSubscription $subscription * @return bool */ public function pushSubscriptionBelongsToUser($subscription){ return (int) $subscription->guest_id === (int) $this->id; } }