File: /home/richfield/www/vendor/cviebrock/eloquent-sluggable/tests/Models/PostWithReservedSlug.php
<?php namespace Cviebrock\EloquentSluggable\Tests\Models;
/**
* Class PostWithReservedSlug
*
* A test model that uses custom reserved slug names.
*
* @package Cviebrock\EloquentSluggable\Tests\Models
*/
class PostWithReservedSlug extends Post
{
/**
* Return the sluggable configuration array for this model.
*
* @return array
*/
public function sluggable(): array
{
return [
'slug' => [
'source' => 'title',
'reserved' => ['add','add-1']
]
];
}
}