Closed programmende closed 5 years ago
@programmende can you invite me too, please?
Similar to #1819
I did an investigation and found out that the issue comes from Eminiarts\Tabs\TabsOnEdit
.
The trait has a method which returns Illuminate\Support\Collection
instead of a Laravel\Nova\Fields\FieldCollection
:
/**
* Resolve the update fields.
*
* @param \Laravel\Nova\Http\Requests\NovaRequest $request
* @return \Illuminate\Support\Collection
*/
public function updateFields(NovaRequest $request)
{
return collect(
[
'Tabs' => [
'component' => 'tabs',
'fields' => $this->removeNonUpdateFields($request, $this->resolveFields($request)),
'panel' => Panel::defaultNameForUpdate($request->newResource()),
],
]
);
}
Hence the method findFieldByAttribute
doesn't exist.
This has been fixed and will be included in the next release. 👍
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Description
If i use the following field, i recive an 500 server error when i try to deleting the file with the generated delete button from field.
URL: /nova/resources/products/50/edit?viaResource=&viaResourceId=&viaRelationship=
Field: Avatar::make('Photo')->disk('public')->deletable()->prunable(),
Error response: