| 1 | <?php namespace Modules\Page\Entities; |
||
| 6 | class Page extends Model |
||
| 7 | { |
||
| 8 | use Translatable; |
||
| 9 | |||
| 10 | protected $table = 'page__pages'; |
||
| 11 | public $translatedAttributes = [ |
||
| 12 | 'page_id', |
||
| 13 | 'title', |
||
| 14 | 'slug', |
||
| 15 | 'status', |
||
| 16 | 'body', |
||
| 17 | 'meta_title', |
||
| 18 | 'meta_description', |
||
| 19 | 'og_title', |
||
| 20 | 'og_description', |
||
| 21 | 'og_image', |
||
| 22 | 'og_type', |
||
| 23 | ]; |
||
| 24 | protected $fillable = [ |
||
| 25 | 'is_home', |
||
| 26 | 'template', |
||
| 27 | // Translatable fields |
||
| 28 | 'page_id', |
||
| 29 | 'title', |
||
| 30 | 'slug', |
||
| 31 | 'status', |
||
| 32 | 'body', |
||
| 33 | 'meta_title', |
||
| 34 | 'meta_description', |
||
| 35 | 'og_title', |
||
| 36 | 'og_description', |
||
| 37 | 'og_image', |
||
| 38 | 'og_type', |
||
| 39 | ]; |
||
| 40 | protected $casts = [ |
||
| 41 | 'is_home' => 'boolean', |
||
| 42 | ]; |
||
| 43 | |||
| 44 | public function __call($method, $parameters) |
||
| 59 | } |
||
| 60 |