-
Laravel Version: 9.33.0 Description:ShowOnPreview ignored where used in new function fieldsForPreview
In previous version i not see emprty section, now yes |
Beta Was this translation helpful? Give feedback.
Answered by
crynobone
Oct 15, 2022
Replies: 2 comments
-
You should be able to do the following: public function fieldsForPreview(NovaRequest $request)
{
return [
$this->mergeWhen($this->gifts->count() > 0, function () {
return [
Heading::make(Str::upper(__('labels.gift'))),
];
}),
];
} |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
crynobone
-
Ok perfect |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You should be able to do the following: