app/Http/Requests/SurveyRequest.php
/**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
Get the validation rules that apply to the request.
@return array
Get the validation rules that apply to the request . @return array
public function rules()
    {
        return [
            'responses.*.answer_id' => 'required',
            'responses.*.question_id' => 'required',
            'survey.name'=> 'required',
            'survey.email'=> 'required|email'
        ];
    }
public function rules ( ) { return [ 'responses.*.answer_id' => 'required' , 'responses.*.question_id' => 'required' , 'survey.name' => 'required' , 'survey.email' => 'required|email' ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .