title: Setting custom error message in Array Bag
body: <p>I want to redirect to view if a certain condition is not met. Check code:</p>
  
  <pre><code>if($request-&gt;get('files') == 'yes' &amp;&amp; $request-&gt;file('file_name') == null){
                  return Redirect::to('brief/'.$id."/edit")
                  -&gt;withErrors('errors',"Mention file")
                  -&gt;withInput();
              }
  </code></pre>
  
  <p>It prints array as:</p>
  
  <pre><code>Illuminate\Support\ViewErrorBag {#239
    #bags: array:1 [
      "Mention file" =&gt; Illuminate\Support\MessageBag {#240
        #messages: array:1 [
          0 =&gt; array:1 [
            0 =&gt; "errors"
          ]
        ]
        #format: ":message"
      }
    ]
  </code></pre>
  
  <p>At view end I am doing:</p>
  
  <pre><code>@if (count($errors) &gt; 0)
                  &lt;div style="margin-top: 10%;" class="alert alert-danger"&gt;
                      &lt;ul&gt;
                          @foreach ($errors-&gt;all() as $error)
                              &lt;li&gt;{{ $error }}&lt;/li&gt;
                          @endforeach
                      &lt;/ul&gt;
                  &lt;/div&gt;
              @endif
  </code></pre>
  
  <p>It is not printing the message <strong>Mention File</strong></p>