Files
vuefilemanager/app/Models/Page.php

37 lines
590 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Kyslik\ColumnSortable\Sortable;
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;
}