Skip to content

Short Configuration

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

Short Configuration

The package supports a really short configuration syntax, if you are truly lazy:

public function sluggable() {
    return [
        'slug'
    ];
}

This will use all the default options from app/config/sluggable.php, use the model's __toString() method as the source, and store the slug in the slug field.

Clone this wiki locally