PHPackages                             ifnicolas/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. ifnicolas/sluggable

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

ifnicolas/sluggable
===================

A PHP library designed to simplify and automate the creation of URL-friendly slugs based on Laravel. Fork of italofantone/sluggable with Laravel 13 support.

v1.0.0(yesterday)01↑2900%MITPHP ^8.1

Since Jul 22Compare

[ Source](https://github.com/ifNicolas/slug-academy-laravel13)[ Packagist](https://packagist.org/packages/ifnicolas/sluggable)[ RSS](/packages/ifnicolas-sluggable/feed)WikiDiscussions Synced today

READMEChangelogDependencies (4)Versions (2)Used By (0)

Sluggable
=========

[](#sluggable)

A PHP library designed to simplify and automate the creation of URL-friendly slugs based on Laravel.

> This package is a fork of [italofantone/sluggable](https://github.com/italofantone/sluggable) by [Italo Morales Fantone](https://github.com/italofantone), updated to support **Laravel 13**. All credit for the original work goes to him.

Requirements
------------

[](#requirements)

- PHP 8.1+
- Laravel 10, 11, 12 or 13

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

[](#installation)

You can install the sluggable package via composer. Run the following command:

```
composer require ifnicolas/sluggable
```

Usage
-----

[](#usage)

### 1. Add the trait to your model

[](#1-add-the-trait-to-your-model)

To use the Sluggable functionality, include the `Sluggable` trait in your Eloquent model:

```
