Laravel 4.1 German Slug
, (*1)
Installation
You should install this package through Composer., (*2)
Edit your project's composer.json file to require pafelin/laravel4-german-slug., (*3)
"require": {
"laravel/framework": "4.1.*",
"pafelin/laravel4-german-slug": "dev-master"
},
"minimum-stability" : "dev"
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)
'Pafelin\Laravel4GermanSlug\SlugServiceProvider',, (*6)
And add a new item to the aliases array., (*7)
'Slug' => 'Pafelin\Laravel4GermanSlug\Facades\Slug',, (*8)
Usage
Call of the method: Slug::make($text), (*9)
Call of the method with specific separator: Slug::make($text, '_')., (*10)
License
The MIT License (MIT), (*11)
Copyright (c) 2013 Pavel Genov, (*12)