{"id":22889608,"url":"https://github.com/dillingham/nova-conditional-fields","last_synced_at":"2025-08-31T22:14:12.156Z","repository":{"id":56969112,"uuid":"169670431","full_name":"dillingham/nova-conditional-fields","owner":"dillingham","description":"WIP: Conditionally display fields based on another field's value","archived":false,"fork":false,"pushed_at":"2020-12-29T02:28:06.000Z","size":109,"stargazers_count":39,"open_issues_count":5,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-07T14:52:48.397Z","etag":null,"topics":["laravel","laravel-nova"],"latest_commit_sha":null,"homepage":"","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/dillingham.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-02-08T01:36:06.000Z","updated_at":"2024-06-02T21:45:08.000Z","dependencies_parsed_at":"2022-08-21T06:40:18.605Z","dependency_job_id":null,"html_url":"https://github.com/dillingham/nova-conditional-fields","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/dillingham/nova-conditional-fields","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dillingham%2Fnova-conditional-fields","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dillingham%2Fnova-conditional-fields/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dillingham%2Fnova-conditional-fields/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dillingham%2Fnova-conditional-fields/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dillingham","download_url":"https://codeload.github.com/dillingham/nova-conditional-fields/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dillingham%2Fnova-conditional-fields/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273047151,"owners_count":25036302,"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","status":"online","status_checked_at":"2025-08-31T02:00:09.071Z","response_time":79,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["laravel","laravel-nova"],"created_at":"2024-12-13T21:56:21.936Z","updated_at":"2025-08-31T22:14:12.140Z","avatar_url":"https://github.com/dillingham.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nova Conditional Fields\n\n[![Latest Version on Github](https://img.shields.io/github/release/dillingham/nova-conditional-fields.svg?style=flat-square)](https://packagist.org/packages/dillingham/nova-conditional-fields)\n[![Total Downloads](https://img.shields.io/packagist/dt/dillingham/nova-conditional-fields.svg?style=flat-square)](https://packagist.org/packages/dillingham/nova-conditional-fields) [![Twitter Follow](https://img.shields.io/twitter/follow/im_brian_d?color=%231da1f1\u0026label=Twitter\u0026logo=%231da1f1\u0026logoColor=%231da1f1\u0026style=flat-square)](https://twitter.com/im_brian_d)\n\nConditionally display fields based on another field's value\n\n### Install\n```\ncomposer require dillingham/nova-conditional-fields\n```\n\n### Usage\n```php\nuse NovaConditionalFields\\Condition;\n```\nExample using a boolean field\n```php\nBoolean::make('Show Fields'),\n\nCondition::make('Show Fields')\n    -\u003ewhen(true, [\n        Text::make('Extra Setting 1'),\n        Text::make('Extra Setting 2'),\n        Text::make('Extra Setting 3'),\n    ])\n```\nAn example using select\n\n```php\nSelect::make('Type')-\u003eoptions([\n    'type-1' =\u003e 'Type 1',\n    'type-2' =\u003e 'Type 2',\n]),\n\nCondition::make('Type')\n    -\u003efieldsWhen('type-1', [\n        Text::make('Setting 1'),\n        Text::make('Setting 2'),\n        Text::make('Setting 3'),\n    ])-\u003ewhen('type-2', [\n        Text::make('Setting 4'),\n        Text::make('Setting 5'),\n        Text::make('Setting 6'),\n    ])\n```\n\n### Coming soon\n-- BelongsTo support\n\n-- whenTrue\n\n-- whenNot\n\n-- whenEmpty\n\n---\n\n# Author\n\nHi 👋, Im Brian Dillingham, creator of this Nova package [and others](https://novapackages.com/collaborators/dillingham)\n\nHope you find it useful. Feel free to reach out with feedback.\n\nFollow me on twitter: [@im_brian_d](https://twitter.com/im_brian_d) \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdillingham%2Fnova-conditional-fields","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdillingham%2Fnova-conditional-fields","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdillingham%2Fnova-conditional-fields/lists"}