2021-03-08 23:34:22 +01:00
|
|
|
<?php namespace BookStack\Interfaces;
|
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Builder;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Interface Sluggable
|
|
|
|
*
|
|
|
|
* Assigned to models that can have slugs.
|
|
|
|
* Must have the below properties.
|
|
|
|
*
|
|
|
|
* @property int $id
|
|
|
|
* @property string $name
|
|
|
|
* @method Builder newQuery
|
|
|
|
*/
|
|
|
|
interface Sluggable
|
|
|
|
{
|
|
|
|
|
2021-03-10 00:06:12 +01:00
|
|
|
/**
|
|
|
|
* Regenerate the slug for this model.
|
|
|
|
*/
|
|
|
|
public function refreshSlug(): string;
|
|
|
|
|
2021-03-08 23:34:22 +01:00
|
|
|
}
|