mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-06 02:33:48 +00:00
36 lines
589 B
PHP
36 lines
589 B
PHP
<?php
|
|
namespace App\Models;
|
|
|
|
use Kyslik\ColumnSortable\Sortable;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
|
|
class Page extends Model
|
|
{
|
|
use Sortable, HasFactory;
|
|
|
|
/**
|
|
* Sortable columns
|
|
*
|
|
* @var string[]
|
|
*/
|
|
public $sortable = [
|
|
'title',
|
|
'slug',
|
|
'visibility',
|
|
];
|
|
|
|
public $fillable = [
|
|
'slug',
|
|
'title',
|
|
'visibility',
|
|
'content',
|
|
];
|
|
|
|
protected $primaryKey = 'slug';
|
|
|
|
protected $keyType = 'string';
|
|
|
|
public $timestamps = false;
|
|
}
|