-
When using the https://nova.laravel.com/docs/4.0/resources/relationships.html#pivot-fields-2 public function fieldsForIndex(NovaRequest $request)
{
return [
Line::make('Title')->asHeading(),
];
}MorphToMany::make('Test Steps', 'stepMaps', FormStep::class)
->fields(function ($request, $relatedModel) {
return [
Line::make('Test', fn() => 'test')
];
}), |
Beta Was this translation helpful? Give feedback.
Answered by
crynobone
Jun 14, 2022
Replies: 1 comment
-
|
You should added it on |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
crynobone
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You should added it on
fieldsForDetail()and notfieldsForIndex()