raccoonsoftware / slug
Laravel 5.1 Slug Package
Installs: 93
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 1
Open Issues: 1
pkg:composer/raccoonsoftware/slug
This package is not auto-updated.
Last update: 2025-09-27 23:31:45 UTC
README
Supported Alphabets
- Russian
- Kazakh
- Ukrainian
- Turkish
Installation
You should install this package through Composer.
Edit your project's composer.json
file to require raccoonsoftware/slug
.
"require": {
"raccoonsoftware/slug": "*"
},
Next, update Composer from the Terminal:
composer update
Once this operation completes, the final step is to add the service provider.
Open app/config/app.php
, and add a new item to the providers array.
'RaccoonSoftware\Slug\SlugServiceProvider::class',
And add a new item to the aliases array.
'Slug' => 'RaccoonSoftware\Slug\Facade\Slug::class',
Usage
Call of the method: Slug::convert($text)
Call of the method with specific separator: Slug::convert($text, '_')
.