Laravel 4 Cyrillic Slug
, (*1)
Supported Alphabets
Installation
You should install this package through Composer., (*2)
Edit your project's composer.json file to require ivanlemeshev/laravel-cyrillic-slug., (*3)
"require": {
"ivanlemeshev/laravel4-cyrillic-slug": "1.0.0"
},
Next, update Composer from the Terminal:
composer update, (*4)
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., (*5)
'Ivanlemeshev\Laravel4CyrillicSlug\SlugServiceProvider',, (*6)
And add a new item to the aliases array., (*7)
'Slug' => 'Ivanlemeshev\Laravel4CyrillicSlug\Facades\Slug',, (*8)
Usage
Call of the method: Slug::make($text), (*9)
Call of the method with specific separator: Slug::make($text, '_')., (*10)