Download the PHP package ryangjchandler/laravel-slug without Composer
On this page you can find all versions of the php package ryangjchandler/laravel-slug. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ryangjchandler/laravel-slug
More information about ryangjchandler/laravel-slug
Files in ryangjchandler/laravel-slug
Package laravel-slug
Short Description Simple slugs for your Laravel models.
License MIT
Homepage https://github.com/ryangjchandler/laravel-slug
Informations about the package laravel-slug
Simple slugs for your Laravel models.
This packages provides an opinionated, attribute-driven trait for automatically generating slugs when creating Laravel models.
Installation
You can install the package via Composer:
Usage
Use the RyanChandler\Slug\Concerns\HasSlug
trait on your model class.
By default, this package will generate a slug using a title
column on your model and store the value in a slug
column.
This can be changed using the RyanChandler\Slug\Attribute\Slug
attribute.
The source
argument should contain the name of the column you'd like to generate a slug from. The column
argument should contain the name of the column you'd like to store the generated slug in.
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Ryan Chandler
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-slug with dependencies
spatie/laravel-package-tools Version ^1.9.2
illuminate/contracts Version ^9.0