{"id":15016804,"url":"https://github.com/howdu/filament-record-switcher","last_synced_at":"2026-01-28T09:05:04.966Z","repository":{"id":246068232,"uuid":"820010166","full_name":"howdu/filament-record-switcher","owner":"howdu","description":"Resource title search with dropdown navigation for Filament","archived":false,"fork":false,"pushed_at":"2026-01-12T08:54:39.000Z","size":286,"stargazers_count":14,"open_issues_count":3,"forks_count":1,"subscribers_count":1,"default_branch":"4.x","last_synced_at":"2026-01-15T17:01:59.741Z","etag":null,"topics":["filament","filamentphp","filamentphp-plugin","laravel","livewire","php"],"latest_commit_sha":null,"homepage":"https://filamentphp.com/plugins/howdu-record-switcher","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/howdu.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":"howdu"}},"created_at":"2024-06-25T16:05:27.000Z","updated_at":"2026-01-12T08:54:37.000Z","dependencies_parsed_at":"2025-10-08T07:13:24.680Z","dependency_job_id":"f01fcc24-a3de-47d5-b862-6f8722140972","html_url":"https://github.com/howdu/filament-record-switcher","commit_stats":{"total_commits":12,"total_committers":2,"mean_commits":6.0,"dds":0.25,"last_synced_commit":"f2b8cbf41a624bb49c2ab3f2b28b4714da9aa6b8"},"previous_names":["howdu/filament-record-switcher"],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/howdu/filament-record-switcher","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/howdu%2Ffilament-record-switcher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/howdu%2Ffilament-record-switcher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/howdu%2Ffilament-record-switcher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/howdu%2Ffilament-record-switcher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/howdu","download_url":"https://codeload.github.com/howdu/filament-record-switcher/tar.gz/refs/heads/4.x","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/howdu%2Ffilament-record-switcher/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28843139,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-28T07:39:25.367Z","status":"ssl_error","status_checked_at":"2026-01-28T07:39:24.487Z","response_time":57,"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":["filament","filamentphp","filamentphp-plugin","laravel","livewire","php"],"created_at":"2024-09-24T19:49:24.475Z","updated_at":"2026-01-28T09:05:04.951Z","avatar_url":"https://github.com/howdu.png","language":"PHP","funding_links":["https://github.com/sponsors/howdu"],"categories":[],"sub_categories":[],"readme":"# Resource title navigation dropdown with search for Filament\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/howdu/filament-record-switcher.svg?style=flat-square)](https://packagist.org/packages/howdu/filament-record-switcher)\n[![GitHub Tests Action Status](https://img.shields.io/github/actions/workflow/status/howdu/filament-record-switcher/run-tests.yml?branch=main\u0026label=tests\u0026style=flat-square)](https://github.com/howdu/filament-record-switcher/actions?query=workflow%3Arun-tests+branch%3Amain)\n[![Total Downloads](https://img.shields.io/packagist/dt/howdu/filament-record-switcher.svg?style=flat-square)](https://packagist.org/packages/howdu/filament-record-switcher)\n\n![Screenshot](https://github.com/howdu/filament-record-switcher/assets/533658/f0c62589-bd5f-4463-bf93-124b1c37955b)\n\nSubtly convert the page title into a dropdown navigation that's displayed on click. \n\nIt works similar to Filament's global search but only shows results for the current resource.\n\n#### Compatibility\n\n| Plugin Version                                                    | Filament Version | PHP Version |\n|-------------------------------------------------------------------|------------------|-------------|\n| [1.x](https://github.com/howdu/filament-record-switcher/tree/3.x) | 3.x              | \\\u003e 8.1      |\n| [2.x](https://github.com/howdu/filament-record-switcher/tree/4.x) | 4.x + 5.x        | \\\u003e 8.2      |\n\n## Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require howdu/filament-record-switcher\n```\n\nOptionally, you can publish the views using\n\n```bash\nphp artisan vendor:publish --tag=\"filament-record-switcher-views\"\n```\n\n## Usage\n\n1. Register plugin inside your PanelProvider(s). \nE.g `app/Filament/Providers/AdminPanelProvider.php`\n```php\nuse Howdu\\FilamentRecordSwitcher\\FilamentRecordSwitcherPlugin;\n\nclass AdminPanelProvider extends PanelProvider\n{\n    public function panel(Panel $panel): Panel\n    {\n        return $panel\n            // ...\n            -\u003eplugin(\n                FilamentRecordSwitcherPlugin::make(),\n            );\n    }\n}\n```\n2. Add the `HasRecordSwitcher` trait to each of your edit record Page.\nE.g `app/Filament/Resources/Category/Pages/EditCategory.php`\n```php\nuse Howdu\\FilamentRecordSwitcher\\Filament\\Concerns\\HasRecordSwitcher;\n\nclass EditCategory extends EditRecord\n{\n    use HasRecordSwitcher;\n}\n```\n\nNote: this trail will overwrite the `getHeading()` method if you've overwritten it in your Page you need to \noverwrite `getRecordTitle()` instead.\n\nIf you want to add custom logic to the `afterSave()` method, you can do so by using the `recordSwitcherAfterSave()` method from the trait.\n```php\n use HasRecordSwitcher {\n    afterSave as recordSwitcherAfterSave;\n}\n\nprotected function afterSave(): void\n{\n    /// Custom logic\n\n    $this-\u003erecordSwitcherAfterSave();\n}\n````\n\n\n3. Check your Resource class e.g CategoryResource has the record title attribute set which's used as the label in the select dropdown.\n```php\nprotected static ?string $recordTitleAttribute = 'title';\n```\n\n4. Finally publish plugin assets.\n```bash\nphp artisan filament:assets\n```\n\n## Testing\n\n```bash\ncomposer test\n```\n\n## Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.\n\n## Contributing\n\nPlease see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.\n\n## Security Vulnerabilities\n\nPlease review [our security policy](../../security/policy) on how to report security vulnerabilities.\n\n## Credits\n\n- [Ben J](https://github.com/howdu)\n- [All Contributors](../../contributors)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhowdu%2Ffilament-record-switcher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhowdu%2Ffilament-record-switcher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhowdu%2Ffilament-record-switcher/lists"}