From d0c197228633d2ffef8be1a4447272d54774c5c9 Mon Sep 17 00:00:00 2001 From: mohamamad Date: Sun, 29 Sep 2019 10:48:02 +0330 Subject: [PATCH] empty --- app/Http/Controllers/Api/UserVoteOptionContoller.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Http/Controllers/Api/UserVoteOptionContoller.php b/app/Http/Controllers/Api/UserVoteOptionContoller.php index 05b1182..3d493d0 100644 --- a/app/Http/Controllers/Api/UserVoteOptionContoller.php +++ b/app/Http/Controllers/Api/UserVoteOptionContoller.php @@ -36,6 +36,7 @@ public function index(Request $request) */ public function store(InsertUserVoteRequest $request) { + $option = Option::Find($request->input('option_id')); if(!isset($option)){ return response()->json($this->setErrorResponse(myResponse::OPTION_NOT_EXISTS, __('The given data was invalid.'),