{"id":23338841,"url":"https://github.com/mostafaznv/nova-morph-filter","last_synced_at":"2025-04-09T22:32:21.217Z","repository":{"id":38296924,"uuid":"453821427","full_name":"mostafaznv/nova-morph-filter","owner":"mostafaznv","description":"Morph Filter for Laravel Nova","archived":false,"fork":false,"pushed_at":"2023-02-04T20:54:12.000Z","size":133,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T00:25:17.497Z","etag":null,"topics":["filter","laravel","morph","nova"],"latest_commit_sha":null,"homepage":"https://novapackages.com/packages/mostafaznv/nova-morph-filter","language":"Vue","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mostafaznv.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-01-30T22:46:10.000Z","updated_at":"2023-02-23T08:22:17.000Z","dependencies_parsed_at":"2023-02-18T19:31:08.101Z","dependency_job_id":null,"html_url":"https://github.com/mostafaznv/nova-morph-filter","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mostafaznv%2Fnova-morph-filter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mostafaznv%2Fnova-morph-filter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mostafaznv%2Fnova-morph-filter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mostafaznv%2Fnova-morph-filter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mostafaznv","download_url":"https://codeload.github.com/mostafaznv/nova-morph-filter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248123639,"owners_count":21051507,"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":["filter","laravel","morph","nova"],"created_at":"2024-12-21T03:16:59.763Z","updated_at":"2025-04-09T22:32:21.198Z","avatar_url":"https://github.com/mostafaznv.png","language":"Vue","readme":"[![Latest Version on Packagist](https://img.shields.io/packagist/v/mostafaznv/nova-morph-filter.svg?style=flat-square)](https://packagist.org/packages/mostafaznv/nova-morph-filter)\n[![Software License](https://img.shields.io/badge/license-Apache-brightgreen.svg?style=flat-square)](LICENSE.txt)\n[![Total Downloads](https://img.shields.io/packagist/dt/mostafaznv/nova-morph-filter.svg?style=flat-square)](https://packagist.org/packages/mostafaznv/nova-morph-filter)\n\n# Morph Filter for Laravel Nova\n\nMorph filter fields for laravel nova\n\n----\nI develop in a open-source journey 🚀, I wish I lived in an environment where financial situation was fine and I could only focus on the path, but as you may know, life isn't perfect.\nSo if you end up using my packages, please consider making a donation, any amount would go along way and is much appreciated. 🍺\n\n[![Donate](https://mostafaznv.github.io/donate/donate.svg)](https://mostafaznv.github.io/donate)\n\n----\n\n## Requirements:\n\n- PHP 8.0 or higher\n- Laravel 8.* or higher\n\n\n## Installation\n\nInstall using composer:\n\n```\ncomposer require mostafaznv/nova-morph-filter\n```\n\n\n## Usage\n```\nuse Mostafaznv\\NovaMorphFilter\\NovaMorphFilter;\n\nclass Post extends Resource\n{\n    ...\n    \n    public function fields(Request $request): array\n    {\n        return [\n            ...\n\n            MorphTo::make(trans('Owner'), 'owner')\n                -\u003etypes([Admin::class, User::class])\n        ];\n    }\n\n\n    public function filters(Request $request): array\n    {\n        return [\n            (new NovaMorphFilter(trans('Owner'), 'owner'))\n                -\u003etypes([User::class, Admin::class])\n        ];\n    }\n}\n```\n\n----\nI develop in a open-source journey 🚀, I wish I lived in an environment where financial situation was fine and I could only focus on the path, but as you may know, life isn't perfect.\nSo if you end up using my packages, please consider making a donation, any amount would go along way and is much appreciated. 🍺\n\n[![Donate](https://mostafaznv.github.io/donate/donate.svg)](https://mostafaznv.github.io/donate)\n\n----\n\n## Changelog\nRefer to the [Changelog](CHANGELOG.md) for a full history of the project.\n\n## License\nThis software released under [Apache License Version 2.0](LICENSE.txt).\n\n(C) 2022 Mostafaznv, All rights reserved.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmostafaznv%2Fnova-morph-filter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmostafaznv%2Fnova-morph-filter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmostafaznv%2Fnova-morph-filter/lists"}