Aarohi Kulkarni Aarohi Kulkarni - 1 year ago 86
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 :-)