{"id":39305006,"url":"https://github.com/tomhatzer/nova-slug-field","last_synced_at":"2026-01-18T01:34:22.964Z","repository":{"id":40562950,"uuid":"146087869","full_name":"tomhatzer/nova-slug-field","owner":"tomhatzer","description":"Slug field for Laravel Nova","archived":false,"fork":false,"pushed_at":"2023-12-27T12:11:49.000Z","size":283,"stargazers_count":143,"open_issues_count":7,"forks_count":26,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-10-08T06:45:01.879Z","etag":null,"topics":["laravel","laravel-nova","nova","slug"],"latest_commit_sha":null,"homepage":null,"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/tomhatzer.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":"2018-08-25T10:55:06.000Z","updated_at":"2025-03-30T13:29:22.000Z","dependencies_parsed_at":"2022-07-15T13:24:29.700Z","dependency_job_id":"4d0ba43f-c103-41f8-a4e8-e331c8449954","html_url":"https://github.com/tomhatzer/nova-slug-field","commit_stats":{"total_commits":26,"total_committers":10,"mean_commits":2.6,"dds":"0.34615384615384615","last_synced_commit":"ed3dfb1947e2da3e8bcc1a4d168ddc9d9d7ee6a9"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/tomhatzer/nova-slug-field","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomhatzer%2Fnova-slug-field","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomhatzer%2Fnova-slug-field/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomhatzer%2Fnova-slug-field/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomhatzer%2Fnova-slug-field/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tomhatzer","download_url":"https://codeload.github.com/tomhatzer/nova-slug-field/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomhatzer%2Fnova-slug-field/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28526550,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T00:39:45.795Z","status":"ssl_error","status_checked_at":"2026-01-18T00:39:39.467Z","response_time":85,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["laravel","laravel-nova","nova","slug"],"created_at":"2026-01-18T01:34:22.848Z","updated_at":"2026-01-18T01:34:22.933Z","avatar_url":"https://github.com/tomhatzer.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laravel Nova Slug Field\n\nSimple Laravel Nova Slug field. Generating a slugified version of a text \ninput. See the result of the slug  while typing.\n \n### Edit form\n\n![details page select](https://raw.githubusercontent.com/benjaminhirsch/benjaminhirsch.github.io/master/repository-assets/nova-slug-demo.gif)\n\n## Installation\n\nIn order to use this package, you need a Laravel installation which uses [Nova](https://nova.laravel.com).\n\n**Composer**\n\n```bash\ncomposer require benjaminhirsch/nova-slug-field\n```\n\n## Usage\nDefine the following fields in your resource in the ```fields``` method:\n```\nuse Benjaminhirsch\\NovaSlugField\\Slug;\nuse Benjaminhirsch\\NovaSlugField\\TextWithSlug;\n\n...\n\nTextWithSlug::make('Name')\n    -\u003eslug('slug'),\n\nSlug::make('Slug'),\n```\n\n##### Slug with a preview of the generated URL\nThis will display the full URL including the generated slug as a link below the input field.\n```\nuse Benjaminhirsch\\NovaSlugField\\Slug;\nuse Benjaminhirsch\\NovaSlugField\\TextWithSlug;\n\n...\n\nTextWithSlug::make('Name')\n    -\u003eslug('slug'),\n\nSlug::make('Slug')\n    -\u003eshowUrlPreview('http://www.foo.bar'),\n```\n\n##### Slug with disabled auto update\nThis is especially usefull, when you are updating the field which the slug belongs to and don't wan't the slug to be updated automatically.\n```\nuse Benjaminhirsch\\NovaSlugField\\Slug;\nuse Benjaminhirsch\\NovaSlugField\\TextWithSlug;\n\n...\n\nTextWithSlug::make('Name')\n    -\u003eslug('slug'),\n\nSlug::make('Slug')\n    -\u003edisableAutoUpdateWhenUpdating(),\n```\n\nThis first field definition is the field which you want to create the slug of. The second field \ndefinition represents the slugified version. With the ```-\u003eslug('name')``` method, you  define \nthe name of the field which holds the slug. It is possible to create multiple slugs on a single\nresource, just add more field definitions. Every ```TextWithSlug``` field needs a  corresponding\n```Slug``` field.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomhatzer%2Fnova-slug-field","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftomhatzer%2Fnova-slug-field","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomhatzer%2Fnova-slug-field/lists"}