30 lines
529 B
PHP
30 lines
529 B
PHP
<?php namespace Database\Tester\Models;
|
|
|
|
use Model;
|
|
|
|
/**
|
|
* Post Model
|
|
*/
|
|
class SluggablePost extends Model
|
|
{
|
|
|
|
use \October\Rain\Database\Traits\Sluggable;
|
|
|
|
/**
|
|
* @var string The database table used by the model.
|
|
*/
|
|
public $table = 'database_tester_posts';
|
|
|
|
/**
|
|
* @var array Guarded fields
|
|
*/
|
|
protected $guarded = [];
|
|
|
|
/**
|
|
* @var array List of attributes to automatically generate unique URL names (slugs) for.
|
|
*/
|
|
protected $slugs = [
|
|
'slug' => 'title'
|
|
];
|
|
|
|
} |