Answer the question
In order to leave comments, you need to log in
How to protect against value substitution in select?
Controller:
View:
View from all this renders like this:$categories = Category::pluck('title', 'id');
{{ Form::select('category', $categories) }}
<select name = 'category'>
<option value = "1">Technologoies</option>
<option value = "2">Programming</option>
</select>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question