As to do so would be Form::select return the name not the value(Value)?

<select>
<option value="0">Dens</option>
</select>

How in php to return a value from Dens. The form is made through laravale helper Form::select('filter,$filter), so you can change the value(value) me(on the edge of it as not found). In the post array, it returns 0.
June 14th 19 at 19:13
1 answer
June 14th 19 at 19:15
Remove the value and then the value will be Denis.
<select>
<option>Dens</option>
</select>
- Kamren commented on June 14th 19 at 19:18
I unloaded from the database to the array it already comes with a key, and create a form using helper Form::section('name'$array) - jermey.McGlynn commented on June 14th 19 at 19:21
If only the array keys to remove - jermey.McGlynn commented on June 14th 19 at 19:24
as a variant to pass an array whose key is the same as the value. - Kamren commented on June 14th 19 at 19:27

Find more questions by tags LaravelPHP