Download the PHP package ka4ivan/laravel-sluggable without Composer
On this page you can find all versions of the php package ka4ivan/laravel-sluggable. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download ka4ivan/laravel-sluggable
More information about ka4ivan/laravel-sluggable
Files in ka4ivan/laravel-sluggable
Download ka4ivan/laravel-sluggable
More information about ka4ivan/laravel-sluggable
Files in ka4ivan/laravel-sluggable
Vendor ka4ivan
Package laravel-sluggable
Short Description Generate slugs when saving Eloquent models (multilingualism, multigroups, uniqueness)
License MIT
Package laravel-sluggable
Short Description Generate slugs when saving Eloquent models (multilingualism, multigroups, uniqueness)
License MIT
Please rate this library. Is it a good library?
Informations about the package laravel-sluggable
Model Sluggable (slugs) for Laravel Framework
📖 Table of Contents
- Installation
- Usage
- Preparing your model
- Base relationships
- Route binding
- Base model usage
- Individual settings for the model
- Search by slug
- Slug generate command
Installation
1) Require this package with composer
2) Publish package resource:
- config
- migration
This is the default content of the config file:
3) Run migration:
Usage
Preparing your model
To associate slugs with a model, the model must implement the following trait: HasSlugs.
Base relationships
Route binding
You can use route binding if you wish.
Base model usage
Individual settings for the model
By default, all settings are taken from the slug config. However, each model can be configured separately if necessary.
Search by slug
Slug generate command
Or with an additional force parameter to regenerate all slugs, even for models that already had them before.
All versions of laravel-sluggable with dependencies
PHP Build Version
Package Version
The package ka4ivan/laravel-sluggable contains the following files
Loading the files please wait ...