Compare commits
2 Commits
efa6410cd9
...
e20caa54c7
| Author | SHA1 | Date | |
|---|---|---|---|
| e20caa54c7 | |||
|
|
fd6149ccbe |
@@ -14,6 +14,7 @@ use Illuminate\Notifications\Notifiable;
|
||||
use Spatie\Permission\Traits\HasRoles;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
use NotificationChannels\WebPush\HasPushSubscriptions;
|
||||
use NotificationChannels\WebPush\PushSubscription;
|
||||
|
||||
class User extends Authenticatable implements FilamentUser
|
||||
{
|
||||
@@ -64,4 +65,9 @@ class User extends Authenticatable implements FilamentUser
|
||||
{
|
||||
return $this->belongsTo(Plant::class);
|
||||
}
|
||||
|
||||
public function pushSubscriptions()
|
||||
{
|
||||
return $this->morphMany(PushSubscription::class, 'subscribable');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user