forked from AsgardCms/Page
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPage.php
40 lines (37 loc) · 800 Bytes
/
Page.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php namespace Modules\Page\Entities;
use Dimsav\Translatable\Translatable;
use Illuminate\Database\Eloquent\Model;
class Page extends Model
{
use Translatable;
protected $table = 'page__pages';
public $translatedAttributes = [
'page_id',
'title',
'slug',
'status',
'body',
'meta_title',
'meta_description',
'og_title',
'og_description',
'og_image',
'og_type',
];
protected $fillable = [
'is_home',
'template',
// Translatable fields
'page_id',
'title',
'slug',
'status',
'body',
'meta_title',
'meta_description',
'og_title',
'og_description',
'og_image',
'og_type',
];
}