Aarohi Kulkarni Aarohi Kulkarni - 7 months ago 30
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

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 :-)