title: Creating a drop down list in laravel to select a users role - laravel
body: <p>I am creating a website using laravel and I have a form to create a new users and within it i need an option to display a way to select a users role, i would like to do this in the form of a drop down list but I'm having difficulty figuring it out.. so far I have this (see below my create.blade.php), but it is not displaying the data from the three roles i have in the table in the DB, (these are admin,instructor and student).</p>
  
  <pre><code>&lt;div class="form-group"&gt;
     &lt;label for="role"&gt;Role&lt;/label&gt;
     &lt;select name="roles[]" class="form-control"&gt;
     @foreach($roles as $role)
       &lt;ul class="dropdown-menu" role="menu"&gt;
       {{ $role }}
       &lt;/ul&gt;
     @endforeach 
     &lt;/select&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Below is my form, I am new to laravel so just trying to learn to better myself, any help is much appreciated :)</p>
  
  <p><a href="https://i.stack.imgur.com/1vtW9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1vtW9.png" alt="enter image description here"></a></p>