Download the PHP package sufian/slug-helper without Composer
On this page you can find all versions of the php package sufian/slug-helper. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download sufian/slug-helper
More information about sufian/slug-helper
Files in sufian/slug-helper
Download sufian/slug-helper
More information about sufian/slug-helper
Files in sufian/slug-helper
Vendor sufian
Package slug-helper
Short Description A Laravel package for generating unique slugs.
License
Package slug-helper
Short Description A Laravel package for generating unique slugs.
License
Please rate this library. Is it a good library?
Informations about the package slug-helper
Laravel-unique-slug-generator
A simple but beautiful unique slug generator for Laravel eloquent model.
Installation
Configuration
Service Provider Registration
In config/app.php
, add in providers
array -
Facade Class Alias Add in aliases array -
Use from Controller
Import first the UniqueSlug facade
Example #01- Post unique slug from title
Let's assume, we have in Post
class, we've added slug
column which is unique. Now, if we passed title
and generate slug
from that, then -
Example #02 - Pass custom separator
Let's assume separator is ''
empty.
Example - Unique slug for category or any model easily
API Docs
Generate method -
Publish configuration
Configurations
Contribution
You're open to create any Pull request.
All versions of slug-helper with dependencies
PHP Build Version
Package Version
The package sufian/slug-helper contains the following files
Loading the files please wait ....