lorlab
lorlab
FFilament
Created by lorlab on 9/18/2023 in #❓┊help
Repeater with relationship also attempts to save to a column
the strange this is that i see the udates in the survey_questions table, but then filament also thinks questions is a field on the survey_steps table
7 replies
FFilament
Created by lorlab on 9/18/2023 in #❓┊help
Repeater with relationship also attempts to save to a column
and in my SurveyStep model I have the questions relationship
public function questions(): HasMany
{
return $this->hasMany(SurveyQuestion::class)->orderBy('order');
}
public function questions(): HasMany
{
return $this->hasMany(SurveyQuestion::class)->orderBy('order');
}
7 replies
FFilament
Created by lorlab on 9/18/2023 in #❓┊help
Repeater with relationship also attempts to save to a column
This is in the SurveyStepResource
Repeater::make('questions')
->relationship()
->hiddenOn(['create'])
->schema([...])
->orderColumn('order')
Repeater::make('questions')
->relationship()
->hiddenOn(['create'])
->schema([...])
->orderColumn('order')
7 replies