34 lines
577 B
PHP
34 lines
577 B
PHP
<?php
|
|
|
|
namespace Paymenter\Extensions\Others\Pages\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Page extends Model
|
|
{
|
|
protected $table = 'ext_pages';
|
|
|
|
protected $fillable = [
|
|
'slug',
|
|
'title',
|
|
'description',
|
|
'content',
|
|
'visible',
|
|
'as_html',
|
|
'visibility',
|
|
'navigation',
|
|
'sort',
|
|
];
|
|
|
|
protected $casts = [
|
|
'visible' => 'boolean',
|
|
'html' => 'boolean',
|
|
'visibility' => 'string',
|
|
];
|
|
|
|
public function getRouteKeyName()
|
|
{
|
|
return 'slug';
|
|
}
|
|
}
|