app/Http/Requests/UserRequest.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 [
			'txtUser'   => 'required|unique:users,username',
			'txtPass'   => 'required',
			'txtRePass' => 'required|same:txtPass',
			'txtEmail'  => 'required|email|unique:users,email'
		];
	}
public function rules ( ) { return [ 'txtUser' => 'required|unique:users,username' , 'txtPass' => 'required' , 'txtRePass' => 'required|same:txtPass' , 'txtEmail' => 'required|email|unique:users,email' ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .