Situation:
I need nested dropdown list.
What I have used?
Problem
I have used Category::selected(1)->renderAsDropdown();
as mentioned in documentation but I'm only able to get the drop down, I need necessary item to be selected. I don't think form model binding works in this situation.
I'm using Laravel 5.3
Fixed it(kind of)! instruction was missing in documentation.. had to do
Category::selected('selected'=>'1')->renderAsDropdown();
but still shows in multiple selection instead of a drop down! so i had to comment some lines out