mx13 / slugable
A package to add slug functionality to an Eloquent model
Installs: 10
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/mx13/slugable
This package is auto-updated.
Last update: 2025-10-21 04:14:29 UTC
README
Introduction
A package to add slug functionality to an Eloquent model.
Installation
Install the package through Composer.
Run the Composer require command from the Terminal:
composer require mx13/slugable
Usage
- The Eloquent model should implement the
\MX13\Slugable\SlugInterfacecontract which enforces implementing thegetSlugColumn()method which returns the name of the slug column. - The Eloquent model should use
\MX13\Slugable\Slugabletrait which has all the functionality needed to make the Eloquent model slugable.