title: get data options from laravel
body: <p>HTML:</p>
  <pre><code>&lt;label&gt;place&lt;/label&gt; 
  &lt;select class=&quot;form-control&quot; name=&quot;provice&quot; id=&quot;provice&quot;&gt;
        &lt;option value=&quot;0&quot;&gt;test&lt;/option&gt;
        @foreach ($provincees as $key =&gt; $value)
            &lt;option value=&quot;{{ $value-&gt;id }}&quot;&gt;{{ $value-&gt;name }}&lt;/option&gt;                 
        @endforeach
  &lt;/select&gt;
  </code></pre>
  <p>I want to get the data name and insert to database, province name searched by using the id found in the select option.</p>
  <p>I use this to get the name based on the select id :</p>
  <pre><code>$results = DB::select('select name from provincees where id = ?',$request-&gt;provice);
  </code></pre>
  <p>I have this code for insert datas :</p>
  <pre><code> $i=DB::insert(&quot;INSERT
      INTO place
         (id,name)
      VALUES
         (?,?,?,?)
      &quot;,[$request-&gt;provice,$results]);
  </code></pre>
  <p>Is there anyone who can help me solve this problem ?</p>