<?php  namespace App\Traits;  use App\Models\PushDevice; use App\Models\NotificationTarget; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Relations\MorphMany;  trait HasPushDevice { 	public function devices(): MorphMany{}  	public function isNotifiable(): bool{}  	public function scopeNotifiable(Builder $query): Builder{}  	public function notificationTargets(): MorphMany{}  	public function markAllNotificationsAsSeen(): self{}  	protected static function bootHasPushDevice(): void 	{ 		static::deleting(function ($model): void { 			$model->devices->each(function ($item): void { 				$item->delete(); 			});  			$model->notificationTargets->each(function ($item): void { 				$item->delete(); 			}); 		}); 	} }