'int', 'lvl' => 'int', 'owner_second' => 'int', 'catalog_id' => 'int', 'catalog_index' => 'int', 'travel_program' => 'int', 'status' => 'int', 'show_in_navi' => 'int', 'order' => 'int', 'OLD_CatalogID' => 'int', 'OLD_OwnerID' => 'int', 'buma_gjr' => 'int', 'price-tags' => 'bool', 'country_id' => 'int', 'lft' => 'int', 'rgt' => 'int', 'tree_root' => 'int', 'parent_id' => 'int', 'travel_guide_content_id' => 'int', 'fewo_lodging' => 'int' ]; protected $dates = [ 'date' ]; protected $fillable = [ 'owner', 'model', 'lvl', 'owner_second', 'catalog_id', 'catalog_index', 'slug', 'travel_program', 'status', 'show_in_navi', 'order', 'title', 'title_short', 'before_title', 'pagetitle', 'description', 'keywords', 'content', 'content_new', 'buma_destination', 'OLD_CatalogID', 'OLD_OwnerID', 'buma_gjr', 'date', 'price-tags', 'text_right', 'keyword', 'canonical_url', 'country_id', 'template', 'lft', 'rgt', 'tree_root', 'parent_id', 'real_url_path', 'travel_guide_content_id', 'box_body', 'box_image_url', 'box_star', 'box_discount', 'cms_settings', 'fewo_lodging' ]; public function sluggable() { return [ 'slug' => [ 'source' => 'title' ] ]; } public function page() { return $this->belongsTo(Page::class, 'tree_root'); } public function fewo_lodging() { return $this->belongsTo(FewoLodging::class, 'fewo_lodging'); } public function travel_country() { return $this->belongsTo(TravelCountry::class, 'country_id'); } public function travel_guide() { return $this->belongsTo(TravelGuide::class, 'travel_guide_content_id'); } public function pages() { return $this->hasMany(Page::class, 'tree_root'); } public function redirects() { return $this->hasMany(Redirect::class); } public function travel_countries() { return $this->hasMany(TravelCountry::class, 'feedback_page_id'); } public function child_pages() { return $this->hasMany(Page::class, 'owner'); } public function parent_page() { return $this->belongsTo(Page::class, 'parent_id'); } public function travel_program_content() { return $this->belongsTo(TravelProgram::class, 'travel_program'); } public function getContentNew() { return $this->content_new ? $this->content_new : $this->content; } }