Aarohi Kulkarni Aarohi Kulkarni - 2 years ago 125
PHP Question

Hide string array list above dropdown laravel

Here is the code for a dropdown in a laravel view.

{{ Form::select(manager_id,$managers,$selected,array('class'=>'dropdown')) }}

Why am I seeing the "stringArray ( [4] => Manager2 [6] => Man )" line above?

enter image description here

Answer Source

You have forgotten single quote around manager_id in form syntax:-

{{ Form::select('manager_id',$managers,$selected,array('class'=>'dropdown')) }}

Refer this laravel cheatsheet.

Hope it will help you :-)

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download