This commit is contained in:
mchev
2026-03-21 18:59:53 +01:00
parent 186ab35fd4
commit c901114fc0
232 changed files with 685 additions and 403 deletions

View File

@@ -3,13 +3,14 @@
namespace App\Traits;
use App\Models\CustomField;
use App\Models\CustomFieldValue;
use Illuminate\Database\Eloquent\Relations\MorphMany;
trait HasCustomFieldsTrait
{
public function fields(): MorphMany
{
return $this->morphMany(\App\Models\CustomFieldValue::class, 'custom_field_valuable');
return $this->morphMany(CustomFieldValue::class, 'custom_field_valuable');
}
protected static function booted()