{"id":16466380,"url":"https://github.com/boadusamuel/searchnestedjsoncolumn","last_synced_at":"2025-07-19T16:39:43.047Z","repository":{"id":61878235,"uuid":"555955914","full_name":"boadusamuel/SearchNestedJsonColumn","owner":"boadusamuel","description":"To search for nested json column in a database without case sensitivity","archived":false,"fork":false,"pushed_at":"2022-10-22T20:54:25.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-27T23:11:34.664Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/boadusamuel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-10-22T18:27:16.000Z","updated_at":"2022-10-22T20:12:16.000Z","dependencies_parsed_at":"2022-10-22T23:15:24.879Z","dependency_job_id":null,"html_url":"https://github.com/boadusamuel/SearchNestedJsonColumn","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/boadusamuel/SearchNestedJsonColumn","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boadusamuel%2FSearchNestedJsonColumn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boadusamuel%2FSearchNestedJsonColumn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boadusamuel%2FSearchNestedJsonColumn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boadusamuel%2FSearchNestedJsonColumn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/boadusamuel","download_url":"https://codeload.github.com/boadusamuel/SearchNestedJsonColumn/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boadusamuel%2FSearchNestedJsonColumn/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264487021,"owners_count":23616184,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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-10-11T11:43:35.036Z","updated_at":"2025-07-09T15:39:53.888Z","avatar_url":"https://github.com/boadusamuel.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Search Nested JSON Database Column\n\nThis package enables you make search inside nested json column in a database without case sensitivity inside laravel projects.\n\n## Installation\n\nYou can install the package via composer:\n\n```composer require boadusamuel/search-nested-json-column ```\n\n## Usage\n\nAfter installing the package, you can use the trait in your model like so:\n\n``` \nuse Boadusamuel\\SearchNestedJsonColumn\\SearchNestedJsonColumn; \n\nclass Product extends Model { use SearchNestedJsonColumn; } \n```\nThen you can use the search method like so:\n```\nProduct::query()-\u003ewhen($search, function (Builder $query) use ($search) {\n    $this-\u003esearchJsonColumn($query, 'attribute_data-\u003ename-\u003evalue-\u003een', $search);\n})-\u003eget();\n```\nWhere `attribute_data` is the json column and `name-\u003evalue-\u003een` is the nested column you want to search.\nAlso `$search` is the value you want to search for and `$this` referring to the model with the `SearchNestedJsonColumn` trait.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboadusamuel%2Fsearchnestedjsoncolumn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fboadusamuel%2Fsearchnestedjsoncolumn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboadusamuel%2Fsearchnestedjsoncolumn/lists"}