Registry / orm / cviebrock-eloquent-sluggable

cviebrock-eloquent-sluggable

JSON →
library13.0.0phppackagistunverified

Easy creation of slugs for your Eloquent models in Laravel.

composer require cviebrock/eloquent-sluggable
INSTALL
IMPORT
SIG · CVIEBROCK-ELOQUENT
C
cviebrock-eloquent-sluggable
ormphpv13.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Sluggable
✓ use Cviebrock\EloquentSluggable\Sluggable;

Add slug generation to an Eloquent model.

use Cviebrock\EloquentSluggable\Sluggable; class Post extends Model { use Sluggable; public function sluggable(): array { return ['slug' => ['source' => 'title']]; } }
Debug
Known issues
gotchaSlug uniqueness may cause issues with large datasets.
fix
Use the 'unique' option in sluggable configuration.
affects: >=4.0.0
Upgrade
Version history
13.0.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
41 hits · last 30 days
node
38
OpenAI (training)
1
Resources
cviebrock-eloquent-sluggable — pip install cviebrock-eloquent-sluggable · libregistry