File manager - Edit - /home/linknsbh/restawy.online/app/Models/Guest.php
Back
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; use Illuminate\Notifications\Notifiable; use NotificationChannels\WebPush\HasPushSubscriptions; class Guest extends Model { use Notifiable, HasPushSubscriptions; protected $fillable = [ 'endpoint', 'user_id' ]; /** * 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; } }
| ver. 1.4 |
Github
|
.
| PHP 8.2.31 | Generation time: 0.47 |
proxy
|
phpinfo
|
Settings