App\Models\Store\Product::getHeaderImageAttribute PHP Method

getHeaderImageAttribute() public method

public getHeaderImageAttribute ( $value )
    public function getHeaderImageAttribute($value)
    {
        if ($this->masterProduct) {
            return $this->masterProduct->header_image;
        } else {
            return $value;
        }
    }