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
I have the following error: Declaration of HasDetachedFilters::availableFilters(Laravel\Nova\Http\Requests\NovaRequest $request) must be compatible with Laravel\Nova\Resource::availableFilters(Laravel\Nova\Http\Requests\NovaRequest $request): Illuminate\Support\Collection
Can you please add to the HasDetachedFilters trait the return type declarations for availableFilters and resolveFilters function.
From: public function availableFilters(NovaRequest $request)
To: public function availableFilters(NovaRequest $request): Collection
From: public function resolveFilters(NovaRequest $request)
From: public function resolveFilters(NovaRequest $request): Collection
The text was updated successfully, but these errors were encountered:
I have the following error:
Declaration of HasDetachedFilters::availableFilters(Laravel\Nova\Http\Requests\NovaRequest $request) must be compatible with Laravel\Nova\Resource::availableFilters(Laravel\Nova\Http\Requests\NovaRequest $request): Illuminate\Support\Collection
Can you please add to the HasDetachedFilters trait the return type declarations for availableFilters and resolveFilters function.
From:
public function availableFilters(NovaRequest $request)
To:
public function availableFilters(NovaRequest $request): Collection
From:
public function resolveFilters(NovaRequest $request)
From:
public function resolveFilters(NovaRequest $request): Collection
The text was updated successfully, but these errors were encountered: