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

        $item->delete();

        return $this->sendResponse($item, 'Notification deleted successfully.');
    }
public function destroy($id, Request $request)
    {
        $user = $request->user();
        $item = $user->notifications()->find($id);
        if (empty($item)) {
            return $this->sendError('Notification not found');
        }

        $item->delete();

        return $this->sendResponse($item, 'Notification deleted successfully.');
    }
public function destroy ( $ id , Request $ request ) { $ user = $ request -> user ( ) ; $ item = $ user -> notifications ( ) -> find ( $ id ) ; if ( empty ( $ item ) ) { return $ this -> sendError ( 'Notification not found' ) ; } $ item -> delete ( ) ; return $ this -> sendResponse ( $ item , 'Notification deleted successfully.' ) ; }
Remove the specified Notification from storage.

@no-permission
@param    int $id

@return  JsonResponse
Remove the specified Notification from storage .