laravel5.2.9 - How to add a top-level category to Laravelcollective's select?
迷茫
迷茫 2017-05-16 16:52:15
0
1
409

Ask a question, Laravelcollective's Form::select('parent_id',$parentID,null,['class'=>'form-control']); how to add a ''=>' top level to parent_id Category', or '0'=>'Top Category'?
$parentID is the parent_id =0 I took out from the database and then lists('name','id'). How to add a top-level category?

迷茫
迷茫

业精于勤,荒于嬉;行成于思,毁于随。

reply all(1)
大家讲道理

You can't process the data in the controller before assigning it to the template?

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template