title: No error message displayed in my View from controller
body: <p>I am trying to display the error msg but it's not displaying. I can see the error msg in the console (Network tab) but nothing in the view.
  Thanks in advance.</p>
  <p>the output from the API.</p>
  <pre><code>{&quot;message&quot;:&quot;The given data was invalid.&quot;,&quot;errors&quot;:{&quot;title&quot;:[&quot;The title field is required.&quot;]}}
  </code></pre>
  <p>controller:</p>
  <pre><code>public function store(Request $request)
  {
      $request-&gt;validate([
          &quot;title&quot;=&gt; &quot;required&quot;
      ]);
      try {
          if ($request-&gt;ajax()) {
              $request-&gt;merge(['created_by_user_info_id' =&gt; Auth::user()-&gt;id]);
              SavingTypes::create($request-&gt;all());
              $data['status'] = true;
              $data['title'] = null;
              $data['message'] = 'Added Successfully.';
          }
      } catch (\Exception $e) {
          $data['status'] = false;
          $data['message'] = 'Something went wrong. please try again';
          $data['error'] = $e-&gt;getMessage();
      }
      return $data;
  }
  </code></pre>
  <p>View:</p>
  <pre><code>&lt;h1&gt;{{ $errors-&gt;first('title') }}test&lt;/h1&gt; // only the &quot;test&quot; is visible and theres no error msg although I can see the error msg in the console (Network tab)
  &lt;input type=&quot;text&quot; class=&quot;form-control&quot; placeholder=&quot;title&quot; name=&quot;title&quot; &gt;
  </code></pre>