PHPackages                             ifranksmith/laravel-sluggable - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. ifranksmith/laravel-sluggable

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

ifranksmith/laravel-sluggable
=============================

Laravel slug maker trait

3315PHP

Since Sep 21Pushed 4y ago1 watchersCompare

[ Source](https://github.com/FutureX-Open-Source/laravel-sluggable)[ Packagist](https://packagist.org/packages/ifranksmith/laravel-sluggable)[ RSS](/packages/ifranksmith-laravel-sluggable/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Favorite (Laravel 5, 6 Package)
=======================================

[](#laravel-favorite-laravel-5-6-package)

**Allows Laravel Eloquent models to implement a 'sluggable' feature.**

Index
-----

[](#index)

- [Installation](#installation)
- [Usage](#usage)

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

[](#installation)

1. Install the package via Composer

```
$ composer require ifranksmith/laravel-sluggable
```

2. In Laravel &gt;=5.5 this package will automatically get registered. For older versions, update your `config/app.php` by adding an entry for the service provider.

```
'providers' => [
    // ...
    IFrankSmith\Sluggable\SluggableServiceProvider
];
```

Usage
-----

[](#usage)

Your models should import the `Traits/Sluggable.php` trait and use it. (see an example below):

```
use IFrankSmith\Sluggable\Traits\Sluggable;

class Posts extends Model
{
	use Sluggable;
}
```

By default, this package will generate slug from the 'name' property of the mmodel and save it to the 'slug' property of the model.

However, if your model does not use those properties, you need to create a method on your model that returns the respective column and source. For example, if you want to make slug from 'title' to 'title\_slug' property, you need to use it as shown below

```
use IFrankSmith\Sluggable\Traits\Sluggable;

class Posts extends Model
{
    use Sluggable;

    public function sluggable()
    {
        return [
            "column" => "title_slug",
            "source" => "title",
        ];
    }
}
```

That's it ... your model is now **"sluggable"**!

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity28

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/5a3d95b27f6227ebc71c4a7dd157ecf309b3848bbe8b9cd973a81ac1dc105684?d=identicon)[ifranksmith](/maintainers/ifranksmith)

---

Top Contributors

[![madassdev](https://avatars.githubusercontent.com/u/13166254?v=4)](https://github.com/madassdev "madassdev (7 commits)")

### Embed Badge

![Health badge](/badges/ifranksmith-laravel-sluggable/health.svg)

```
[![Health](https://phpackages.com/badges/ifranksmith-laravel-sluggable/health.svg)](https://phpackages.com/packages/ifranksmith-laravel-sluggable)
```

###  Alternatives

[robinherbots/jquery.inputmask

Inputmask is a javascript library which creates an input mask. Inputmask can run against vanilla javascript, jQuery and jqlite.

6.5k276.6k4](/packages/robinherbots-jqueryinputmask)[webman/captcha

Captcha generator

1484.2k25](/packages/webman-captcha)

PHPackages © 2026

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