{"id":19865822,"url":"https://github.com/thinhbuzz/laravel-categories-multilevel","last_synced_at":"2026-03-09T18:37:44.541Z","repository":{"id":100755547,"uuid":"51683800","full_name":"thinhbuzz/laravel-categories-multilevel","owner":"thinhbuzz","description":"Categories multilevel with single model file for Laravel 5","archived":false,"fork":false,"pushed_at":"2016-02-14T07:15:50.000Z","size":5,"stargazers_count":4,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-28T17:45:16.253Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thinhbuzz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-02-14T07:01:48.000Z","updated_at":"2022-11-19T16:18:54.000Z","dependencies_parsed_at":"2023-05-01T20:43:29.031Z","dependency_job_id":null,"html_url":"https://github.com/thinhbuzz/laravel-categories-multilevel","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/thinhbuzz/laravel-categories-multilevel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinhbuzz%2Flaravel-categories-multilevel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinhbuzz%2Flaravel-categories-multilevel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinhbuzz%2Flaravel-categories-multilevel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinhbuzz%2Flaravel-categories-multilevel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thinhbuzz","download_url":"https://codeload.github.com/thinhbuzz/laravel-categories-multilevel/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinhbuzz%2Flaravel-categories-multilevel/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30307548,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T17:35:44.120Z","status":"ssl_error","status_checked_at":"2026-03-09T17:35:43.707Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-12T15:24:16.747Z","updated_at":"2026-03-09T18:37:44.491Z","avatar_url":"https://github.com/thinhbuzz.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Categories multilevel with single model file for Laravel 5\n\n\n## Tips and tricks\n\n- [Seeding](#seeding)\n\n\n### Seeding\nSimple data\n\n```php\n$categories = [\n    ['name' =\u003e 'TV \u0026 Home Theather'],\n    ['name' =\u003e 'Tablets \u0026 E-Readers'],\n    ['name' =\u003e 'Computers', 'children' =\u003e [\n        [\n            'name' =\u003e 'Laptops', 'children' =\u003e [\n            ['name' =\u003e 'PC Laptops'],\n            ['name' =\u003e 'Macbooks (Air/Pro)']\n        ]\n        ],\n        ['name' =\u003e 'Desktops', 'children' =\u003e [\n            // These will be created\n            ['name' =\u003e 'Towers Only'],\n            ['name' =\u003e 'Desktop Packages'],\n            ['name' =\u003e 'All-in-One Computers'],\n            ['name' =\u003e 'Gaming Desktops']\n        ]],\n        ['name' =\u003e 'Monitors'],\n    ]],\n    ['name' =\u003e 'Cell Phones']\n];\n\\App\\Models\\Category::buildTree($categories);\n```\n\n\u003e Updating","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthinhbuzz%2Flaravel-categories-multilevel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthinhbuzz%2Flaravel-categories-multilevel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthinhbuzz%2Flaravel-categories-multilevel/lists"}