Answers for "cast json datatype vlaue into array when getting from model in laravle"

PHP
2

model json laravel accessor to convert to array

public function getBalanceAttribute($value)
{
    return json_decode($value);
}
Posted by: Guest on September-11-2021

Code answers related to "cast json datatype vlaue into array when getting from model in laravle"

Browse Popular Code Answers by Language