Answers for "hwo to use json decond in casts array in laravel"

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

Browse Popular Code Answers by Language