Slug field for Laravel Nova
Branch: master
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
dist Added options parameter for speakingurl Feb 9, 2019
.gitattributes Add .gitattributes for correct language detection on github Feb 18, 2019
.gitignore Inital commit Aug 25, 2018
LICENSE Initial commit Aug 25, 2018 Added use statement to readme make things a bit clearer Sep 12, 2018
composer.json Inital commit Aug 25, 2018
mix-manifest.json Inital commit Aug 25, 2018
webpack.mix.js Inital commit Aug 25, 2018

Laravel Nova Slug Field

Simple Laravel Nova Slug field. Generating a slugified version of a text input. See the result of the slug while typing.

Edit form

details page select


In order to use this package, you need a Laravel installation which uses Nova.


composer require benjaminhirsch/nova-slug-field


Define the following fields in your resource in the fields method:

use Benjaminhirsch\NovaSlugField\Slug;
use Benjaminhirsch\NovaSlugField\TextWithSlug;




This first field definition is the field which you want to create the slug of. The second field definition represents the slugified version. With the ->slug('name') method, you define the name of the field which holds the slug. It is possible to create multiple slugs on a single resource, just add more field definitions. Every TextWithSlug field needs a corresponding Slug field.