PHPackages                             joonas1234/nova-sluggable-field - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. joonas1234/nova-sluggable-field

ActiveLibrary

joonas1234/nova-sluggable-field
===============================

A Laravel Nova field to generate a slugs.

0231PHP

Since Jul 31Pushed 6y ago1 watchersCompare

[ Source](https://github.com/joonas1234/nova-sluggable-field)[ Packagist](https://packagist.org/packages/joonas1234/nova-sluggable-field)[ RSS](/packages/joonas1234-nova-sluggable-field/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (1)

Laravel Nova Sluggable Field
============================

[](#laravel-nova-sluggable-field)

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

**This is just copy from  with small changes. It is advisable to use original package**

Installation
------------

[](#installation)

In order to use this package, you need a Laravel installation which uses [Nova](https://nova.laravel.com).

**Composer**

```
composer require joonas1234/nova-sluggable-field
```

Usage
-----

[](#usage)

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

```
use Joonas1234\NovaSluggableField\Slug;
use Joonas1234\NovaSluggableField\TextWithSlug;

...

TextWithSlug::make('Name')
    ->slug('slug'),

Slug::make('Slug'),

```

##### Slug with a preview of the generated URL

[](#slug-with-a-preview-of-the-generated-url)

This will display the full URL including the generated slug as a link below the input field.

```
use Joonas1234\NovaSluggableField\Slug;
use Joonas1234\NovaSluggableField\TextWithSlug;

...

TextWithSlug::make('Name')
    ->slug('slug'),

Slug::make('Slug')
    ->showUrlPreview('http://www.foo.bar'),

```

##### Slug with disabled auto update

[](#slug-with-disabled-auto-update)

This is especially useful, when you are updating the field which the slug belongs to and don't wan't the slug to be updated automatically.

```
use Joonas1234\NovaSluggableField\Slug;
use Joonas1234\NovaSluggableField\TextWithSlug;

...

TextWithSlug::make('Name')
    ->slug('slug'),

Slug::make('Slug')
    ->disableAutoUpdateWhenUpdating(),

```

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.

##### Slug with prefix

[](#slug-with-prefix)

This will add prefix to url.

```
use Joonas1234\NovaSluggableField\Slug;
use Joonas1234\NovaSluggableField\TextWithSlug;

...

TextWithSlug::make('Name')
    ->slug('slug'),

Slug::make('Slug')
    ->slugPrefix('baz'),

```

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/7d125683f947bfd8351c10a03ff008c4b2aea9e5272e11c66634e86ce6ff38fe?d=identicon)[joonas1234](/maintainers/joonas1234)

---

Top Contributors

[![joonas1234](https://avatars.githubusercontent.com/u/35030215?v=4)](https://github.com/joonas1234 "joonas1234 (1 commits)")

### Embed Badge

![Health badge](/badges/joonas1234-nova-sluggable-field/health.svg)

```
[![Health](https://phpackages.com/badges/joonas1234-nova-sluggable-field/health.svg)](https://phpackages.com/packages/joonas1234-nova-sluggable-field)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
