'array', // автоматически преобразует JSON в массив ]; public function user() { return $this->belongsTo(User::class, 'created_by_user_id'); } public function componentType() { return $this->belongsTo(ComponentType::class, 'component_type_id'); } }