title: Laravel validation always returns 200 OK from API
body: <p>I want to separate my validator with my controller, but API always responds with a <code>200 OK</code> in Postman.</p>
  
  <p><strong>Request validation</strong>:</p>
  
  
  
  <pre class="lang-php prettyprint-override"><code>class PostRequest extends FormRequest
  {
      use Types;
  
      public function authorize()
      {
          return true;
      }
  
      public function rules()
      {
          // $auth = $this-&gt;request-&gt;user();
          return [
              'name'       =&gt; 'required|string|max:255',
              'country_id' =&gt; 'required|exists:countries,id',
              'city'       =&gt; 'required|max:255',
              'phone_no'   =&gt; 'required|regex:/[0-9]{10,13}/',
              'occupation' =&gt; 'required|max:255'
          ];
      }
  }
  </code></pre>
  
  <p><strong>SenderController</strong>:</p>
  
  <pre class="lang-php prettyprint-override"><code>public function store(PostRequest $request)
  {
      $auth = $request-&gt;user();
  
      $sender = Sender::create([
          'name'          =&gt; $request-&gt;name,
          'country_id'    =&gt; $request-&gt;country_id,
          'city'          =&gt; $request-&gt;city,
          'phone_no'      =&gt; $request-&gt;phone_no,
          'occupation'    =&gt; $request-&gt;occupation
      ]);
      return new Resource($sender);
  }
  </code></pre>
  
  <p>When I'm sending a request without <code>name</code>, it will return a response with a status of 200. I want to display <code>$validator-&gt;errors()</code> in my response when I forget to input name. How can I do that?</p>
  
  <p><a href="https://i.stack.imgur.com/54L7J.png" rel="noreferrer"><img src="https://i.stack.imgur.com/54L7J.png" alt="Postman"></a></p>
  
  <p><strong>Route and call</strong>:</p>
  
  <pre class="lang-php prettyprint-override"><code>Route::post('sender', 'V1\SenderController@store');
  
  POST: localhost:8000/api/v1/sender
  </code></pre>