'required', /*Database*/ 'host' => 'required', 'database' => 'required', 'db_username' => 'required', 'db_password' => '', /*Mail driver*/ 'mail_driver' => 'required', 'encryption' => 'required', 'mail_host' => 'required', 'mail_username' => 'required', 'mail_name' => 'required', 'mail_address' => 'required', 'mail_password' => 'required', /*user registration*/ 'privacy_policy' => 'required', 'terms_of_service' => 'required', 'first_name' => 'required', 'last_name' => 'required', 'email' => 'required|email:rfc,dns', 'password' => 'required', ]; } protected function prepareForValidation() { $input = $this->all(); $input['user_agent'] = request()->server('HTTP_USER_AGENT'); $this->replace($input); } }