src/Processor/SidebarProcessor.php
public function delete()
    {
        try {
            if (is_null($id = Input::get('id'))) {
                throw new Exception('Invalid notification id provided');
            }
            $this->stack->deleteById($id);
        } catch (Exception $ex) {
            Log::alert($ex);
            return new JsonResponse(['message' => trans('antares/notifications::messages.sidebar.unable_to_delete_notification_item')], 500);
        }
    }
public function delete()
    {
        try {
            if (is_null($id = Input::get('id'))) {
                throw new Exception('Invalid notification id provided');
            }
            $this->stack->deleteById($id);
        } catch (Exception $ex) {
            Log::alert($ex);
            return new JsonResponse(['message' => trans('antares/notifications::messages.sidebar.unable_to_delete_notification_item')], 500);
        }
    }
public function delete ( ) { try { if ( is_null ( $ id = Input :: get ( 'id' ) ) ) { throw new Exception ( 'Invalid notification id provided' ) ; } $ this -> stack -> deleteById ( $ id ) ; } catch ( Exception $ ex ) { Log :: alert ( $ ex ) ; return new JsonResponse ( [ 'message' => trans ( 'antares/notifications::messages.sidebar.unable_to_delete_notification_item' ) ] , 500 ) ; } }
Deletes item from sidebar

@return JsonResponse
Deletes item from sidebar