'required', ]; } /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { $user_id=Comment::where('id',$this->id)->first()->user_id; if($user_id == Auth::user()->id){ return true; }else{ return false; } } }