Repeater By VirtualColumn

Hello , I have a question about using the Repeater Form Element. My Model has a json-array-column named 'data' where data of the repeater is stored. i need to extract this data column into another database Table. how can I access this data, since it's not a HasMany Relation? ```php // Current Implementation $schema[] = Repeater::make('data') ->label(__('miniapp.fields')) // Connection to new Model where the needed would again be in the data column public function modelversiondata(): hasOne { return $this->HasMany(ModelVersion::class, 'model_id', 'id') ->select('data') ->where('version_id', '=', session('version')) ->first(); }
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server