Hi,
can you just add the calculaed value as new member to the object?
public function getMyAttributeValue($value) {
$x = json_decode($value)
foreach ( $x as $y ) {
do some code with $y
}
$this->my_attribute = $result;
return $result;
}
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community