public function unread($id, ReadNotificationRequest $request)
    {
        $user = $request->user();
        $item = $user->notifications()->find($id);
        if (empty($item)) {
            return $this->sendError('Notification not found');
        }
        $item->markAsUnread();

        return $this->sendResponse($item, '');
    }
public function unread($id, ReadNotificationRequest $request)
    {
        $user = $request->user();
        $item = $user->notifications()->find($id);
        if (empty($item)) {
            return $this->sendError('Notification not found');
        }
        $item->markAsUnread();

        return $this->sendResponse($item, '');
    }
public function unread ( $ id , ReadNotificationRequest $ request ) { $ user = $ request -> user ( ) ; $ item = $ user -> notifications ( ) -> find ( $ id ) ; if ( empty ( $ item ) ) { return $ this -> sendError ( 'Notification not found' ) ; } $ item -> markAsUnread ( ) ; return $ this -> sendResponse ( $ item , '' ) ; }
Unread a notification

@no-permission
@param      $id
@param     ReadNotificationRequest $request
@return    JsonResponse
Unread a notification