{"id":15024992,"url":"https://github.com/ferdiunal/nova-editable-field","last_synced_at":"2025-06-11T10:11:02.314Z","repository":{"id":256371682,"uuid":"855101772","full_name":"ferdiunal/nova-editable-field","owner":"ferdiunal","description":"This Laravel Nova Field enables easy record updates within tables. It’s simple to use and works seamlessly with form fields and BelongsTo fields.","archived":false,"fork":false,"pushed_at":"2024-09-16T18:12:35.000Z","size":2048,"stargazers_count":9,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-03T12:14:52.003Z","etag":null,"topics":["editable-table","laravel","laravel-nova","laravel-nova-field","php"],"latest_commit_sha":null,"homepage":"https://ferdiunal.tech","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/ferdiunal.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-10T10:04:19.000Z","updated_at":"2025-03-23T12:57:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"388b7f83-c023-4a39-83f1-1471aec052b8","html_url":"https://github.com/ferdiunal/nova-editable-field","commit_stats":null,"previous_names":["ferdiunal/nova-editable-field"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ferdiunal%2Fnova-editable-field","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ferdiunal%2Fnova-editable-field/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ferdiunal%2Fnova-editable-field/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ferdiunal%2Fnova-editable-field/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ferdiunal","download_url":"https://codeload.github.com/ferdiunal/nova-editable-field/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248571637,"owners_count":21126520,"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":["editable-table","laravel","laravel-nova","laravel-nova-field","php"],"created_at":"2024-09-24T20:01:19.246Z","updated_at":"2025-04-12T12:53:04.878Z","avatar_url":"https://github.com/ferdiunal.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"./art/banner.png\" /\u003e\n\n# Nova Editable Field\n\nThe purpose of this Laravel Nova Field is to allow easy updates to records within tables (development and testing for the Detail view are still in progress). So far, I haven't tested it with third-party components. It's very easy to use and can be seamlessly integrated with form fields and BelongsTo fields.\n\n## Installation\n\n```bash\ncomposer require ferdiunal/nova-editable-field\n```\n\n## Usage\n\nIt is very easy to use, the first parameter is NovaRequest, the second one allows us to dynamically change the width of the Popover.\n\n```php\n\u003c?php\n\nnamespace App\\Nova;\n\nuse Illuminate\\Http\\Request;\nuse Laravel\\Nova\\Fields\\Email;\nuse Laravel\\Nova\\Fields\\Gravatar;\nuse Laravel\\Nova\\Fields\\ID;\nuse Laravel\\Nova\\Fields\\Text;\nuse Laravel\\Nova\\Http\\Requests\\NovaRequest;\n\nclass User extends Resource\n{\n    /**\n     * The model the resource corresponds to.\n     *\n     * @var class-string\u003c\\App\\Models\\User\u003e\n     */\n    public static $model = \\App\\Models\\User::class;\n\n    /**\n     * The single value that should be used to represent the resource when being displayed.\n     *\n     * @var string\n     */\n    public static $title = 'name';\n\n    /**\n     * The columns that should be searched.\n     *\n     * @var array\n     */\n    public static $search = [\n        'id', 'name', 'email',\n    ];\n\n    /**\n     * Get the fields displayed by the resource.\n     *\n     * @return array\n     */\n    public function fields(NovaRequest $request)\n    {\n        return [\n            ID::make()-\u003esortable()-\u003ehideFromIndex(),\n            Gravatar::make()-\u003emaxWidth(50),\n            Text::make('Name')\n                -\u003esortable()\n                -\u003emaxlength(255)\n                -\u003eenforceMaxlength()\n                -\u003erules('required', 'max:255')\n                -\u003eeditable($request, '300px'),\n            Email::make('Email')\n                -\u003esortable()\n                -\u003erules('required', 'email', 'max:254')\n                -\u003emaxlength(254)\n                -\u003eenforceMaxlength()\n                -\u003ecreationRules('unique:users,email')\n                -\u003eupdateRules('unique:users,email,{{resourceId}}')\n                -\u003eeditable($request),\n        ];\n    }\n}\n\n```\n\n## Screenshots\n\n\u003cimg src=\"./art/image-1.png\" /\u003e\n\u003cimg src=\"./art/image-2.png\" /\u003e\n\u003cimg src=\"./art/image-3.png\" /\u003e\n\u003cimg src=\"./art/image-4.png\" /\u003e\n\u003cimg src=\"./art/image-5.png\" /\u003e\n\nLicense This package is open-sourced software licensed under the [MIT license](LICENSE).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fferdiunal%2Fnova-editable-field","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fferdiunal%2Fnova-editable-field","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fferdiunal%2Fnova-editable-field/lists"}