mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-20 08:52:15 +00:00
src folder refactoring
This commit is contained in:
35
src/Domain/Pages/Models/Page.php
Normal file
35
src/Domain/Pages/Models/Page.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?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;
|
||||
}
|
||||
Reference in New Issue
Block a user