app/Http/Requests/ContactFormRequest.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 [
			'first_name' => 'required|max:255',
			'last_name' => 'required|max:255',
			'email' => 'required|email',
			'subject' => ['required', 'regex:/^[a-zA-Z0-9\-\_ ]+$/'],
			'message' => 'required'
		];
	}
public function rules ( ) { $ this -> sanitize ( ) ; return [ 'first_name' => 'required|max:255' , 'last_name' => 'required|max:255' , 'email' => 'required|email' , 'subject' => [ 'required' , 'regex:/^[a-zA-Z0-9\-\_ ]+$/' ] , 'message' => 'required' ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .