roundly-consulting/sluggable-for-laravel
Larablocks Analysis
roundly-consulting/sluggable-for-laravel works with Laravel 13 (latest release 2.0.0, Nov 7, 2026).
Laravel 12 in earlier releases.
Recommendation checks
Use with careUse with care: meets 2 of 5 checks.
- Works with Laravel 13, the current version
- Released in the last 12 months (Nov 7, 2026)
- First released under 90 days ago
- 555 downloads a month (needs 10,000)
- 5 GitHub stars (needs 100)
State
Too new to judge- Last stable release: Nov 7, 2026.
- 8 releases in the last 12 months.
- First released: Oct 3, 2026.
- Monthly downloads: 555.
- 0 open issues on GitHub.
Data from Packagist and GitHub, checked by Larablocks on Dec 2, 2026.
| Install | |
|---|---|
composer require roundly-consulting/sluggable-for-laravel |
|
| Latest Version: | 2.0.0 |
| PHP: | ^8.4 |
| Laravel: | 13 |
| Older releases: | 12 |
| License: | MIT |
| Last Updated: | Nov 7, 2026 |
| Links: | GitHub · Packagist |
Sluggable for Laravel
Single- and multi-language slugs for Eloquent: plain string slug columns and JSON locale-map
columns, scoped per-locale uniqueness backed by engine-native unique indexes, locale-aware route
model binding, validation rules and an optional slug history with 301 redirects. With the
defaults, ordinary input slugs exactly like Str::slug(), so adopting it keeps the slugs you
already have.
Installation
Requires PHP 8.4 and Laravel 13. Supported databases: PostgreSQL 12+ and MySQL 8.0.23+ / MariaDB 10.3.3+ (SQLite 3.38+ for tests). SQL Server is not supported.
composer require roundly-consulting/sluggable-for-laravel
Usage
Add the trait (zero config: slug is generated from name) and the column:
use Illuminate\Database\Eloquent\Model;
use RoundlyConsulting\Sluggable\Concerns\HasSlug;
use RoundlyConsulting\Sluggable\Contracts\Sluggable;
final class Clinic extends Model implements Sluggable
{
use HasSlug;
protected $fillable = ['name', 'slug'];
}
// in the migration
$table->slug(); // string('slug', 255)
$table->uniqueSlug(); // its unique index
Every save gets a unique slug, and it stays put when the name changes, so links never break:
use RoundlyConsulting\Sluggable\Facades\Slugs;
Clinic::create(['name' => 'Happy Paws'])->slug; // "happy-paws"
Clinic::create(['name' => 'Happy Paws'])->slug; // "happy-paws-2"
Route::get('/clinics/{clinic:slug}', ShowClinic::class);
Slugs::regenerate($clinic); // recompute from the new name and save
Slugs::slugify('Žltý kôň @ home', language: 'sk'); // "zlty-kon-at-home"
Documentation
The full documentation — configuration, every feature and its API, and testing — lives on our website: roundly-consulting.com/open-source/docs/sluggable-for-laravel
Release notes are in CHANGELOG.md. To contribute, see the contributing guide.
Support our work
This package is free and open source, built and maintained by Roundly Consulting. If it saves you time, please consider supporting our open-source work — a one-time donation, a monthly pledge on Patreon or a crypto donation helps fund maintenance, new features and new packages.
License
The MIT License (MIT). See LICENSE.md.
Alternatives to roundly-consulting/sluggable-for-laravel
Easy creation of slugs for your Eloquent models in Laravel
Automatic slug generation for Eloquent models via the #[Sluggable] attribute.
Polymorphic, multilingual routable identity for Eloquent — leak-safe IDs, per-lo...
Provides a HasSlug trait that will generate a unique slug when saving your Larav...
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| 2.0.0 | ^8.4 | ^13.0 | MIT | |
| 1.1.3 | ^8.4 | ^12.0| | MIT | |
| 1.1.2 | ^8.4 | ^12.0| | MIT | |
| 1.1.1 | ^8.4 | ^12.0| | MIT | |
| 1.1.0 | ^8.4 | ^12.0| | MIT | |
| 1.0.2 | ^8.4 | ^12.0| | MIT | |
| 1.0.1 | ^8.4 | ^12.0| | MIT | |
| 1.0.0 | ^8.4 | ^12.0| | MIT |