Hi all i've been search for a while and can't find it in their documentation. does anyone know how to build a dynamic select list in laravel using the form-base plugin?
Thanks
public function user_options()
{
return array('' => 'Choose a User') + User::lists('id', 'name');
}
{{ Form::select('user_id', UserWhateverForm::user_options(), UserWhateverForm::old('user_id')) }}
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