title: Laravel show errors if request form validation fails
body: <p>I'm making a REST API that should validate data entry from the user, to achieve that, I made a <code>Request</code> class that has the <code>rules</code> function that it should do the validations.</p>
  
  <h3>Request class</h3>
  
  <pre><code>class StoreUpdateQuestionRequest extends Request {
  
      public function authorize() {
          return true;
      }
  
      public function rules() {
          $method = $this-&gt;method();
          $rules = [
              'question' =&gt; 'required|min:10|max:140',
              'active' =&gt; 'boolean',
          ];
  
          return $method !== 'GET' || $method !== 'DELETE' ? $rules : [];
      }
  }
  </code></pre>
  
  <p>So, in the controller, when I try to run an endpoint which it fires the validations, it does work, it fails when it's has to, but it doesn't show me the errors as I expect, even though I defined the error messages in the <code>messages</code> function contained in the <code>Request</code> class, instead of showing me that errors, it redirects me to a location. Which sometimes is the result of a request I made before or it runs the <code>/</code> route, weird.</p>
  
  <h3>Controller function</h3>
  
  <pre><code>public function store(StoreUpdateQuestionRequest $request) {
  
      $question = new Question;
      $question-&gt;question = $request-&gt;question;
      $question-&gt;active = $request-&gt;active;
  
      if($question-&gt;save()) {
  
          $result = [
              'message' =&gt; 'A question has been added!',
              'question' =&gt; $question,
          ];
  
          return response()-&gt;json($result, 201);
      }
  
  }
  </code></pre>
  
  <p>Any ideas? Thanks in advance!</p>