You can define the columns as array in your model. Something like this:
class UserDetail extends Model
{
.
.
.
protected $casts = [
'details' => 'array',
];
.
.
.
}
And then you can access the vendor_service_area
with something like this:
$user_details->details['profile_details']['vendor_service_area'];
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.