Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

model json laravel accessor to convert to array

public function getBalanceAttribute($value)
{
    return json_decode($value);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #model #json #laravel #accessor #convert #array
ADD COMMENT
Topic
Name
7+7 =