Hello everyone. I have been looking for some time and cannot find it in my documentation. Does anyone know how to create a dynamic select list in laravel using a 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')) }}
echo Form::select('size', array('L' => 'Large', 'S' => 'Small'), 'S');
In an array, you can dynamically specify parameters / value. The last option is the default value.
See the documentation.
Source: https://habr.com/ru/post/1447478/More articles:Using latest google closing with clojurescript? - google-closureExtension of functional parameters based on parameter type - javascripthttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1447475/how-to-write-only-application-logs-to-an-external-file-in-android&usg=ALkJrhjwT_EbVzaqzL88-QVJ3L1dSiJfUQLink BPEL-ESB to new operation in WSDL? - esbHow does breezejs EntityManager work? - javascriptReceive notification if an application is sent from the passage - iosInstallation error: INSTALL_FAILED_INVALID_INSTALL_LOCATION - androidSetInitializer is not running, but EF is still trying to create a database - entity-frameworkhttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1447482/monitor-for-dynamic-changes-to-html-div-using-jquery&usg=ALkJrhjlTDUY53sHJPAR7Ckpzqd3Xf96XAHow to set a global variable with the UIColor class - global-variablesAll Articles