'array', 'is_published' => 'boolean', ]; } /** * Get the author of the page. */ public function author() { return $this->belongsTo(User::class, 'user_id'); } /** * Get the navigation item for the page. */ public function navigationItem() { return $this->hasOne(NavigationItem::class); } }