You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/** * Get the steps for the recipe. */publicfunctionsteps(): HasMany
{
return$this->hasMany(Step::class);
}
/** * Get the recipe that owns the step. */publicfunctionrecipe(): BelongsTo
{
return$this->belongsTo(Recipe::class);
}
And in my recipe resource this package:
NestedForm::make('steps'),
But, if I want to create a new entry, I get this message: A field defining the inverse relationship needs to be set on your related resource (e.g. MorphTo, BelongsTo, BelongsToMany...)
Where should the error be or does the package have a different idea of a relation than me and the Laravel documentation?
The text was updated successfully, but these errors were encountered:
I've following One To Many Relation:
And in my recipe resource this package:
But, if I want to create a new entry, I get this message:
A field defining the inverse relationship needs to be set on your related resource (e.g. MorphTo, BelongsTo, BelongsToMany...)
Where should the error be or does the package have a different idea of a relation than me and the Laravel documentation?
The text was updated successfully, but these errors were encountered: