<?php  namespace App\Traits;  use App\Models\Notification; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Relations\MorphMany;  trait HasNotifications { 	public function pushNotifications(): MorphMany{}  	public function scopeNotificationIncludes(Builder $query): Builder{}  	public function getNotificationId(): string{}  	public function getNotificationAvatar(): ?string{}  	public function getNotificationName(): ?string{}  	public function getNotificationType(): string{}  	public function getAppDeeplinkUrl(?string $uri = null): string{}  	protected static function bootHasNotifications(): void 	{ 		static::deleting(function ($model): void { 			$model->pushNotifications->each(function ($item): void { 				$item->delete(); 			}); 		}); 	} }