1use Cviebrock\EloquentSluggable\Sluggable;
2
3class Post extends Model
4{
5 use Sluggable;
6
7 /**
8 * Return the sluggable configuration array for this model.
9 *
10 * @return array
11 */
12 public function sluggable()
13 {
14 return [
15 'slug' => [
16 'source' => 'title'
17 ]
18 ];
19 }
20}