When using bootstrap-select.js in combination with the Laravel Form facade, no value is transmitted. dd()
says null
{!! Form::select('user', $users, null, array('class' => 'selectpicker show-tick', 'data-live-search' => 'true', 'id' => 'user_select')) !!}
However when using the form facade without bootstrap-select like this:
{!! Form::select('user', $users, null) !!}
it works.
dd()
says 1
Bootstrap Select is a form control that shows a collapsable list of different values that can be selected. This can be used for displaying forms or menus to the user.
To open the dropdown menu, use a button or a link with a class of . dropdown-toggle and the data-toggle="dropdown" attribute. The . caret class creates a caret arrow icon (), which indicates that the button is a dropdown.
A CDN is a tool that shortens the path taken by information between the user and the servers. Bootstrap websites hosted locally make use of a single server, which can slow down information transfer. CDNs comprise a network of servers located in different locations around the world.
When using bootstrap select, You should fetch the input like:
Input::get('id_of_your_input');
and when not using bootstrap select you should do it like this:
Input::get('name_of_your_input');
Coz bootstrap select creates another input to be sent with a new name (extracted from the original Input's Id) :)
Update
You can use dd(Input::all())
to see all the inputs sent to your controller with their names.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With