<?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 (object $model): void { 			$model->pushNotifications->each(function (Notification $item): void { 				$item->delete(); 			}); 		}); 	} }