public function ownsNotification(Notification $notification) { $notifiable = $notification->getNotifiable(); if ($this->is($notifiable)) { return true; } if ($this->hasShop() and $this->getShop()->is($notifiable)) { return true; } return false; }