mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-06 02:33:48 +00:00
46 lines
1.2 KiB
PHP
46 lines
1.2 KiB
PHP
<?php
|
|
|
|
namespace App;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Kyslik\ColumnSortable\Sortable;
|
|
|
|
/**
|
|
* App\Page
|
|
*
|
|
* @property int $id
|
|
* @property int $visibility
|
|
* @property string $title
|
|
* @property string $slug
|
|
* @property string $content
|
|
* @method static \Illuminate\Database\Eloquent\Builder|Page newModelQuery()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|Page newQuery()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|Page query()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|Page sortable($defaultParameters = null)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|Page whereContent($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|Page whereId($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|Page whereSlug($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|Page whereTitle($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|Page whereVisibility($value)
|
|
* @mixin \Eloquent
|
|
*/
|
|
class Page extends Model
|
|
{
|
|
use Sortable;
|
|
|
|
/**
|
|
* Sortable columns
|
|
*
|
|
* @var string[]
|
|
*/
|
|
public $sortable = [
|
|
'title',
|
|
'slug',
|
|
'visibility',
|
|
];
|
|
|
|
public $timestamps = false;
|
|
|
|
protected $guarded = ['id'];
|
|
}
|