app/Http/Requests/RequestInfoFormRequest.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()
	{
		$this->sanitize();
		return [
            'name' => 'required|max:255',
            'state_province' => 'nullable|max:2',
			'email' => 'required|email',
            'phone_home' => 'required',
            'child_name' => 'nullable|max:255',
            'grade' => 'nullable|digits:1',
		];
	}
public function rules ( ) { $ this -> sanitize ( ) ; return [ 'name' => 'required|max:255' , 'state_province' => 'nullable|max:2' , 'email' => 'required|email' , 'phone_home' => 'required' , 'child_name' => 'nullable|max:255' , 'grade' => 'nullable|digits:1' , ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .