PHPackages                             pawelmysior/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. [Database &amp; ORM](/categories/database)
4. /
5. pawelmysior/laravel-sluggable

ActiveLibrary[Database &amp; ORM](/categories/database)

pawelmysior/laravel-sluggable
=============================

A small trait, a wrapper of cviebrock/eloquent-sluggable

7.0.0(6y ago)0354MITPHPPHP ^7.2

Since Dec 11Pushed 6y ago1 watchersCompare

[ Source](https://github.com/pawelmysior/laravel-sluggable)[ Packagist](https://packagist.org/packages/pawelmysior/laravel-sluggable)[ RSS](/packages/pawelmysior-laravel-sluggable/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (1)Versions (5)Used By (0)

Sluggable
=========

[](#sluggable)

This is a very small trait. It is an elegant wrapper of [cviebrock/eloquent-sluggable](https://github.com/cviebrock/eloquent-sluggable).

It defines a default slug source attribute (`title`) and adds a scope to find a model by the slug.

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

[](#installation)

You can install the package via composer:

```
composer require pawelmysior/laravel-sluggable
```

Preparation
-----------

[](#preparation)

Use the trait on the model:

```
