I have a form where I put de id's of my bands table inside a select option. When I select an id in the dropdownlist and try to submit the form, the value always remains NULL. How can I retrieve the value I selected?
create.blade.php file :
<form>
    <select name="band_id">
        @foreach ($bands as $band) 
            <option value="{{ $band->band_id }}">{{ $band->band_id }}</option>
        @endforeach
    </select>
    <input type="submit" value="Submit">
</form>
My Bandcontroller inside my store action :
$bands->band_id = $input['band_id'];