public function getFirstImageAttribute() { $features_array = $this->features; return $features_array['images'][0]; }