Download the PHP package mr-timofey/eloquent-sluggable without Composer
On this page you can find all versions of the php package mr-timofey/eloquent-sluggable. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download mr-timofey/eloquent-sluggable
More information about mr-timofey/eloquent-sluggable
Files in mr-timofey/eloquent-sluggable
Download mr-timofey/eloquent-sluggable
More information about mr-timofey/eloquent-sluggable
Files in mr-timofey/eloquent-sluggable
Vendor mr-timofey
Package eloquent-sluggable
Short Description Sluggable Eloquent model class
License MIT
Package eloquent-sluggable
Short Description Sluggable Eloquent model class
License MIT
Please rate this library. Is it a good library?
Informations about the package eloquent-sluggable
Slugs for Eloquent models.
Features
findBySlug
,findBySlugOrFail
,findByAny
,findByAnyOrFail
- Automatic slug generation on create (if not set manually) by transliterating source attribute
- Automatic unique constraint check after any slug modification on each saving (slug will be appended with -1/2/3/... until becomes unique)
- Both slug or ID route resolving (assuming ID field is integer)
- Almost anything can be customized by method overriding or class fields
Requirements
- PHP 7.1
- Eloquent models
Install
Usage
Just use MrTimofey\EloquentSluggable\Sluggable
trait by any of your model classes. Define fields if needed:
See trait source code if you need more customizations.
All versions of eloquent-sluggable with dependencies
PHP Build Version
Package Version
The package mr-timofey/eloquent-sluggable contains the following files
Loading the files please wait ....