Cviebrock\EloquentSluggable\Tests\Models\PostWithCustomSuffix::sluggable PHP Method

sluggable() public method

Return the sluggable configuration array for this model.
public sluggable ( ) : array
return array
    public function sluggable()
    {
        return ['slug' => ['source' => 'title', 'uniqueSuffix' => function ($slug, $separator, Collection $list) {
            $size = count($list);
            return chr($size + 96);
        }]];
    }
PostWithCustomSuffix