title: How to show Validation message in Controller?
body: <p>I have tried showing an error message in a Controller and it doesn't work, but when I use <code>dd</code>, it works.</p>
  
  <p><strong>My Code:</strong></p>
  
  <pre><code>if ($validation-&gt;fails())
  {
      /*Doesn't work
      foreach ($validation-&gt;fails() as $messages) {
          $messages // Doesn't work
      }
      */
      dd($validation-&gt;errors); //This works
  }
  </code></pre>