Skip to content
Shipu Ahamed edited this page Sep 3, 2016 · 1 revision

Installation

First, you'll need to install the package via Composer:

$ composer require cviebrock/eloquent-sluggable:^4.0

NOTE: Eloquent-Sluggable uses traits and requires Laravel 5.1 or later, so you will need to be running PHP 5.5.9 or higher.

Then, update config/app.php by adding an entry for the service provider.

'providers' => [
    // ...
    Cviebrock\EloquentSluggable\ServiceProvider::class,
];

Finally, from the command line again, publish the default configuration file:

php artisan vendor:publish --provider="Cviebrock\EloquentSluggable\ServiceProvider"
Clone this wiki locally