PHP Package: spatie/laravel-sluggable

A Laravel package that automatically adds slugs to your Eloquent models for SEO optimization and better URL readability.

Current Version: 3.7.4
Last Updated: 2025-02-28
PHP Requirement: ^8.0
Dependencies:
illuminate/database
illuminate/support
⚠️ To ensure full functionality, the above dependencies might be required.

Package Description

Laravel Sluggable is a package that simplifies the process of creating and managing slugs for your Eloquent models in Laravel applications. It allows you to easily generate and update slugs to improve your website's search engine optimization (SEO) and enhance the readability of your URLs. By integrating this package, you can streamline the handling of slugs, making your application more user-friendly and SEO-friendly at the same time.

📦 Show all available classes🔗 View on GitHub

Download Latest Version: 3.7.5

Clock Coming soon

Previous Versions

Code Integration Example

Make sure to include the correct namespace and class paths for proper usage.

<?php
// Example from PHPlibraries.com
require_once 'libs/spatie/laravel-sluggable/3.7.5/loader.php';
require_once 'libs/illuminate/database/12.33.0/loader.php';
require_once 'libs/illuminate/support/12.33.0/loader.php';

use Spatie\Sluggable\HasSlug;
use Illuminate\Database\Eloquent\Model;

$obj = new HasSlug();
echo '✅ Test OK: ' . get_class($obj);
?>

We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.

Community Discussion

Ask questions, share tips, or report issues below.