{"id":22889615,"url":"https://github.com/dillingham/nova-grouped-field","last_synced_at":"2025-05-07T14:46:06.325Z","repository":{"id":56969101,"uuid":"157279319","full_name":"dillingham/nova-grouped-field","owner":"dillingham","description":"Combine multiple Nova fields as one field output","archived":false,"fork":false,"pushed_at":"2020-12-29T02:28:27.000Z","size":26,"stargazers_count":41,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-16T03:07:42.938Z","etag":null,"topics":["laravel","laravel-nova","laravel-nova-field"],"latest_commit_sha":null,"homepage":"","language":"Vue","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":"2018-11-12T21:28:41.000Z","updated_at":"2024-05-21T08:11:15.000Z","dependencies_parsed_at":"2022-08-21T06:40:18.443Z","dependency_job_id":null,"html_url":"https://github.com/dillingham/nova-grouped-field","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dillingham%2Fnova-grouped-field","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dillingham%2Fnova-grouped-field/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dillingham%2Fnova-grouped-field/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dillingham%2Fnova-grouped-field/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dillingham","download_url":"https://codeload.github.com/dillingham/nova-grouped-field/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252898361,"owners_count":21821603,"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":["laravel","laravel-nova","laravel-nova-field"],"created_at":"2024-12-13T21:56:23.373Z","updated_at":"2025-05-07T14:46:06.297Z","avatar_url":"https://github.com/dillingham.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nova Grouped Field\n\n[![Latest Version on Github](https://img.shields.io/github/release/dillingham/nova-grouped-field.svg?style=flat-square)](https://packagist.org/packages/dillingham/nova-grouped-field)\n[![Total Downloads](https://img.shields.io/packagist/dt/dillingham/nova-grouped-field.svg?style=flat-square)](https://packagist.org/packages/dillingham/nova-grouped-field) [![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\n\nThis Nova field provides a clean way to combine multiple fields into one output.\n\n![nova-grouped-field-1](https://user-images.githubusercontent.com/29180903/48378053-9c387600-e69d-11e8-9faa-dece657fa1ba.png)\n\n# Installation\n\nInstalling with composer:\n\n```bash\ncomposer require dillingham/nova-grouped-field\n```\n\n# Usage\n\n```php\nuse Dillingham\\NovaGroupedField\\Grouped;\n```\n```php\npublic function fields(Request $request)\n{\n    return [\n        Grouped::make('User')-\u003efields([\n            BelongsTo::make('Account'),\n            BelongsTo::make('User'),\n        ])\n    ]\n}\n```\n\n---\n\n# Options\n\nThere are a few chainable options available\n\n### separator($value)\n\nIf you would like to override the default slash separator\n\n```php\nGrouped::make('User')-\u003efields([\n    BelongsTo::make('Account'),\n    BelongsTo::make('User'),\n])-\u003eseparator('-')\n```\n\n### showLabels()\n\nIf you want to output the original labels inline with the values\n\n```php\nGrouped::make('User')-\u003efields([\n    BelongsTo::make('Account'),\n    BelongsTo::make('User'),\n])-\u003eshowLabels()\n```\n### removeLinks()\n\nIf you just want plain text output for relationships\n\n```php\nGrouped::make('User')-\u003efields([\n    BelongsTo::make('Account'),\n    BelongsTo::make('User'),\n])-\u003eremoveLinks()\n```\n### Screenshots\n\n| separator('-') | showLabels() | removeLinks() |\n| - | - | -\n![nova-grouped-field-separator](https://user-images.githubusercontent.com/29180903/48378215-2a146100-e69e-11e8-90c8-269cf42b1b65.png) | ![nova-grouped-field-labels](https://user-images.githubusercontent.com/29180903/48378354-5cbe5980-e69e-11e8-8e10-28187f473c5b.png) | ![nova-grouped-field-no-links](https://user-images.githubusercontent.com/29180903/48378417-7fe90900-e69e-11e8-8b8a-5e0a5ac2a431.png) \n\n### Native options\n\n`Grouped` is a nova field like any other.\n\nYou can use authorization like `-\u003ecanSee()`\n\nYou can decide when to show like `-\u003ehideFromIndex()`\n\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-grouped-field","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdillingham%2Fnova-grouped-field","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdillingham%2Fnova-grouped-field/lists"}