belongsTo(Page::class, 'page_id'); } /** * Function to get full image path */ public function getFullImageAttribute() { $result = null; if($this->image) { $result = asset('storage/' . Self::FILE_PATH . $this->image); } return $result; } }