title: Laravel custom validation error messages
body: <p>I have a custom "base" validator</p>
  
  <pre><code>class BaseUserRequest extends FormRequest
  {
      ...
  
      public function messages()
      {
          return [
              'password.min' =&gt; 'Custom error',
          ];
      }
  }
  </code></pre>
  
  <p>And other validator extends "base" class</p>
  
  <pre><code>class RegisterUserRequest extends BaseUserRequest
  {
      ...
  
      public function messages()
      {
          return parent::messages();
      }
  }
  </code></pre>
  
  <p>When I try to trigger <code>password:min</code> error on form, which uses <code>RegisterUserRequest</code>, I get default message instead "Custom error" message. What's wrong with my <code>RegisterUserRequest</code> class?
  If I use <code>BaseUserRequest</code>, I get my "Custom error" message. Something is wrong with class inheritance.</p>
  
  <p><strong>UPDATE (QUESTION SOLVED)</strong>: I forgot to register rules on validation<br>
  not</p>
  
  <pre><code>return Validator::make($data, (new RegisterUserRequest())-&gt;rules());
  </code></pre>
  
  <p>but</p>
  
  <pre><code>return Validator::make($data, (new RegisterUserRequest())-&gt;rules(), (new RegisterUserRequest())-&gt;messages());
  </code></pre>