I have some trouble here. I use Backpack CRUD generator for my admin panel. In the database (categories column) I have a "parent_id" field which specify which is parent and children. The addFiled of CRUD has a type "select_from_array" which accept an array ( 'value'=>'name'). And I don't know how to make an array which something like that from the array I got from DB toArray(). Tks alot.
Asked
Active
Viewed 680 times