italofantone/sluggable
A lightweight Laravel package that automatically generates unique, SEO-friendly slugs for your Eloquent models. Add the trait, point it at a source column, and Sluggable handles slug creation and updates for you, avoiding duplicates with sensible defaults and simple configuration.
php artisan vendor:publish if the package ships one, then clear cached config (php artisan config:clear) so edits take effect.slug string column, indexed and preferably unique(), in the migration for each model that needs one. Decide nullable vs NOT NULL before you have data.title), and save a record through Eloquent — not a raw insert — to confirm a slug appears.Post/Product model with a title-derived slug plus route model binding. Build that end to end (migration → trait → save → Route::get('/posts/{post:slug}')) before touching config knobs.resolveRouteBinding that accepts either, so old links and admin tooling don't 404.intl/iconv availability differs between local, CI, and production containers — verify slugs generated on the server, not just your machine.DB::table() updates, seeders, and some queue/import paths. Generate slugs explicitly there or route writes through Eloquent.How can I help you explore Laravel packages today?