1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| $data = [ ['id' => 1, 'title' => 'Electronics', 'parent_id' => 0], ['id' => 2, 'title' => 'Laptops & PC', 'parent_id' => 1], ['id' => 3, 'title' => 'Laptops', 'parent_id' => 2], ['id' => 4, 'title' => 'PC', 'parent_id' => 2], ['id' => 5, 'title' => 'Cameras & photo', 'parent_id' => 1], ['id' => 6, 'title' => 'Camera', 'parent_id' => 5], ['id' => 7, 'title' => 'Phones & Accessories', 'parent_id' => 1], ['id' => 8, 'title' => 'Smartphones', 'parent_id' => 7], ['id' => 9, 'title' => 'Android', 'parent_id' => 8], ['id' => 10, 'title' => 'iOS', 'parent_id' => 8], ['id' => 11, 'title' => 'Other Smartphones', 'parent_id' => 8], ['id' => 12, 'title' => 'Batteries', 'parent_id' => 7], ['id' => 13, 'title' => 'Headsets', 'parent_id' => 7], ['id' => 14, 'title' => 'Screen Protectors', 'parent_id' => 7], ];
|