public function unReadNotifications($user)
    {
        $notifications = MessageNotification::where([['user_id', '=', $user->getKey()], ['conversation_id', '=', $this->id], ['is_seen', '=', 0]])->get();

        return $notifications;
    }
public function unReadNotifications($user)
    {
        $notifications = MessageNotification::where([['user_id', '=', $user->getKey()], ['conversation_id', '=', $this->id], ['is_seen', '=', 0]])->get();

        return $notifications;
    }
public function unReadNotifications ( $ user ) { $ notifications = MessageNotification :: where ( [ [ 'user_id' , '=' , $ user -> getKey ( ) ] , [ 'conversation_id' , '=' , $ this -> id ] , [ 'is_seen' , '=' , 0 ] ] ) -> get ( ) ; return $ notifications ; }
Get unread notifications.

@param User $user

@return void
Get unread notifications .