app/Models/Traits/Notificable.php
/**
     * Delete notifications related to the current record
     */
Delete notifications related to the current record
Delete notifications related to the current record
public function removeNotifications()
    {
        foreach ($this->notifications as $notification) {
            $notification->delete();
        }
    }
public function removeNotifications ( ) { foreach ( $ this -> notifications as $ notification ) { $ notification -> delete ( ) ; } }
Delete notifications related to the current record
Delete notifications related to the current record