Laravel Sluggable

screenshot of Laravel Sluggable
laravel

An opinionated package to create slugs for Eloquent models

Overview:

This package provides a trait that can generate a unique slug for any Eloquent model when it is saved. The slugs are created using Laravel's Str::slug method, converting spaces to '-'. Spatie, a web design agency based in Antwerp, Belgium, has developed this package.

Features:

  • Unique Slug Generation: Generates a unique slug for Eloquent models.
  • Customizable Slug Options: Allows customization of slug generation using different fields.
  • Language Settings: Provides the option to set the language used by Str::slug.

Summary:

This package by Spatie offers a convenient way to generate slugs for Eloquent models in Laravel applications. With features like customizable slug generation, language settings, and options to prevent overwriting slugs, it provides flexibility and ease of use for developers working with Laravel.

laravel
Laravel

Laravel is a powerful and elegant PHP framework that provides developers with a comprehensive set of tools and features to build robust web applications. It follows the Model-View-Controller (MVC) architectural pattern, offering a clean and organized structure for writing efficient and maintainable code.