app/Http/Requests/Api/AnswerRecordRequest.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 [
            'answer_list_id' => 'required|integer',
            'date'           => 'date',
            'question'       => 'required|string',
            'option'         => 'required|string',
            'answer'         => 'required|string',
        ];
    }
public function rules ( ) { return [ 'answer_list_id' => 'required|integer' , 'date' => 'date' , 'question' => 'required|string' , 'option' => 'required|string' , 'answer' => 'required|string' , ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .