public function delete($uuid)
    {
        $model = static::$model::findOrFail($uuid);

        $this->authorizeUserAction('delete', $model);

        $deletedCount = $model->delete();

        if ($deletedCount < 1) {
            throw new NotFoundHttpException('Could not find a resource with that UUID to delete');
        }

        return $this->response->noContent()->setStatusCode(204);
    }
public function delete($uuid)
    {
        $model = static::$model::findOrFail($uuid);

        $this->authorizeUserAction('delete', $model);

        $deletedCount = $model->delete();

        if ($deletedCount < 1) {
            throw new NotFoundHttpException('Could not find a resource with that UUID to delete');
        }

        return $this->response->noContent()->setStatusCode(204);
    }
public function delete ( $ uuid ) { $ model = static :: $ model :: findOrFail ( $ uuid ) ; $ this -> authorizeUserAction ( 'delete' , $ model ) ; $ deletedCount = $ model -> delete ( ) ; if ( $ deletedCount < 1 ) { throw new NotFoundHttpException ( 'Could not find a resource with that UUID to delete' ) ; } return $ this -> response -> noContent ( ) -> setStatusCode ( 204 ) ; }
Deletes a resource by UUID

@param string $uuid UUID of the resource
@return \Dingo\Api\Http\Response
@throws NotFoundHttpException
Deletes a resource by UUID