Laravel 5.1 Slug Package
92
1
3
Package Data
Maintainer Username: raccoonsoftware
Maintainer Contact: mehmet@raccoonsoftware.net (Mehmet Nuri Ozturk)
Package Create Date: 2015-11-15
Package Last Update: 2015-11-15
Language: PHP
License: BSD
Last Refreshed: 2024-11-15 15:16:10
Package Statistics
Total Downloads: 92
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 1
Total Watchers: 3
Total Forks: 1
Total Open Issues: 1

Laravel 5.1 Slug Package

Gitter Latest Stable Version Total Downloads Latest Unstable Version License

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, '_').