Select box with first option empty

后端 未结 15 1399
情深已故
情深已故 2021-02-01 16:29

Does anybody know how can I set in my select box the first option to empty value?

I\'m getting the data from my DB, and I would like to set the option by default as \"P

15条回答
  •  情书的邮戳
    2021-02-01 16:42

    {{ Form::select('parent_id', [null=>'Please Select'] + \App\Item::where('1','1')->pluck('name', 'id')->toArray()) }}
    

提交回复
热议问题