title: Remove message from MessageBag
body: <p>How can I remove an error message from a <code>MessageBag</code>?</p>
  
  <p>I've been trying to remove a specific element from the message array that <code>MessageBag</code> uses without any luck.</p>
  
  <p>I'm getting the same error message twice.</p>
  
  <pre><code>@if($errors-&gt;has('undefined'))
      &lt;div class="alert alert-warning"&gt;
      &lt;button type="button" class="close" data-dismiss="alert"&gt;&amp;times;&lt;/button&gt;
      &lt;h4&gt;Failure.&lt;/h4&gt;
          {{ $errors-&gt;first('undefined') }}
      &lt;/div&gt;
      &lt;?
          // $messages = $errors-&gt;getMessages();
          $messages = $errors-&gt;toArray();
          unset($messages['undefined']);
      ?&gt;
  @endif
  
  @if($errors-&gt;any())
      &lt;div class="alert alert-error"&gt;
      &lt;button type="button" class="close" data-dismiss="alert"&gt;&amp;times;&lt;/button&gt;
      &lt;h4&gt;Error!&lt;/h4&gt;
          {{ $errors-&gt;first() }}
      &lt;/div&gt;
  @endif
  </code></pre>
  
  <h3>Edit</h3>
  
  <p>I have done something like this and it seems to work.</p>
  
  <pre><code>&lt;?
      $messages = $errors-&gt;toArray();
  ?&gt;
  
          @if(array_key_exists('undefined', $messages))
              &lt;?
                  $message_array = $messages['undefined'];
                  $message = $message_array[0];
                  unset($messages['undefined']);
              ?&gt;
  
              &lt;div class="alert alert-warning"&gt;
              &lt;button type="button" class="close" data-dismiss="alert"&gt;&amp;times;&lt;/button&gt;
              &lt;h4&gt;Failure.&lt;/h4&gt;
                  {{ $message }}
              &lt;/div&gt;
          @endif
  
          &lt;?
              foreach ($messages as $error =&gt; $error_array) { 
          ?&gt;
              &lt;div class="alert alert-error"&gt;
              &lt;button type="button" class="close" data-dismiss="alert"&gt;&amp;times;&lt;/button&gt;
              &lt;h4&gt;Error!&lt;/h4&gt;
                  {{ $error_array[0] }}
              &lt;/div&gt;
           &lt;?
              }
           ?&gt;
  </code></pre>
  
  <p>But my question still remains?  Why is this happening in first place? <br/>
  Does it has to do with the <strong>Session</strong>? I know that the <code>errors</code> variable it is stored in the Session.</p>