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