title: How to use "enum" values in select option in Laravel?
body: <p>I have problem with build select in Laravel blade and use only two types values from database</p>
  
  <p>I have column in my migraton:</p>
  
  <pre><code>$table-&gt;enum('contact_way', ['email', 'phone']);  
  </code></pre>
  
  <p>I have to use it in my blade form to update, I use simple @if statement but it is not good  </p>
  
  <pre><code>&lt;select class="form-control" name="contact_way"&gt;
      @if ($customer_event-&gt;contact_way === "email")
          &lt;option value="email" selected&gt;Kontakt e-mail&lt;/option&gt;
          &lt;option value="phone" &gt;Kontakt telefoniczny&lt;/option&gt;
      @else
          &lt;option value="email" &gt;Kontakt e-mail&lt;/option&gt;
          &lt;option value="phone" selected&gt;Kontakt telefoniczny&lt;/option&gt;
      @endif
  &lt;/select&gt;
  </code></pre>
  
  <p>I want to use foreach staement where I use this to things and check witch one is correct and this show like selected but I don't know how to do it</p>