Closed william-cwb closed 2 years ago
Why do you need to json_decode
? You can simply access the attributes like object properties:
$customer = TbCliente::find($request['id']);
dump($customer->id);
@KKSzymanowski is correct, you shouldn't need to decode the object.
Please try one of the forked projects, as this one is abandoned.
When I do query, i need to do json_decode($model) to access attributes from table.
But, when I do parse, I can't access attributes from Eloquent.
How can I fix this?