{"id":19153654,"url":"https://github.com/404labfr/nova-signature","last_synced_at":"2025-05-07T06:27:10.692Z","repository":{"id":57010442,"uuid":"205415397","full_name":"404labfr/nova-signature","owner":"404labfr","description":"A nova signature field","archived":false,"fork":false,"pushed_at":"2020-01-29T07:51:10.000Z","size":84,"stargazers_count":14,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-15T19:47:43.742Z","etag":null,"topics":["field","laravel","laravel-nova-field","nova","signature"],"latest_commit_sha":null,"homepage":null,"language":"Vue","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/404labfr.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-08-30T16:06:27.000Z","updated_at":"2023-07-09T19:22:48.000Z","dependencies_parsed_at":"2022-08-21T14:50:56.704Z","dependency_job_id":null,"html_url":"https://github.com/404labfr/nova-signature","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/404labfr%2Fnova-signature","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/404labfr%2Fnova-signature/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/404labfr%2Fnova-signature/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/404labfr%2Fnova-signature/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/404labfr","download_url":"https://codeload.github.com/404labfr/nova-signature/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252826168,"owners_count":21810072,"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":["field","laravel","laravel-nova-field","nova","signature"],"created_at":"2024-11-09T08:23:45.372Z","updated_at":"2025-05-07T06:27:10.669Z","avatar_url":"https://github.com/404labfr.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laravel Nova Signature\n\nThis [Nova](https://nova.laravel.com/) field lets you save a signature as a field for your resource.\n\nBehind the scenes [WangShayne/vue-signature](https://github.com/WangShayne/vue-signature) is used.\n\n![screenshot of nova signature](https://github.com/404labfr/nova-signature/raw/master/screenshots/signature.png?raw=true)\n\n## Installation\n\n`composer require lab404/nova-signature`\n\n## Usage\n\nIn your nova resource make the field `Lab404\\NovaSignature\\NovaSignature`.\nThis field fits perfectly with a `TEXT` column and can be used both for resources and actions.\n\n```php\npublic function fields()\n{\n    return [\n        // ...\n        NovaSignature::make('Signature'),\n        // ...\n    ];\n}\n```\n\n## Configuration\n\nShowed example values are the default ones.\n\n```php\nNovaSignature::make('Signature')\n    -\u003ecolor('black') // (string) Any css compatible value: \"red\", \"rgb(0, 0, 0)\", ...\n    -\u003ebgColor('white') // (string) Same as 'color'\n    -\u003ewidth('100%') // (string) Any css compatible value: \"100%\", \"200px\", ...\n    -\u003eheight('250px') // (string) Same as 'width'\n    -\u003esaveOnChanges() // () Save the signature at every change and it will hide the Attach button\n```\n\n### Validation\n\nYou can use the `signature` validation rules to check if the signature is valid.\nWe also provide the `validSignature` method that adds `nullable` and `signature` rules.\n\n```php\n// With validSignature() \nNovaSignature::make('Signature')\n    -\u003evalidSignature() // 'nullable' and 'signature' rules\n\n// Your own rules\nNovaSignature::make('Signature')\n    -\u003erules('signature', ...) \n```\n\n### Licence\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F404labfr%2Fnova-signature","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F404labfr%2Fnova-signature","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F404labfr%2Fnova-signature/lists"}