belongsTo(User::class); } public function getCertificatesAttribute($value) { return json_decode($value, true); } }