When using __construct at list page for resources, appear error: Too few arguments to function #46

Closed
opened 2024-07-29 03:06:57 +00:00 by kamaludin21 · 2 comments
kamaludin21 commented 2024-07-29 03:06:57 +00:00 (Migrated from github.com)

Too few arguments to function App\Filament\Resources[ResourcesName]\Pages\ListData::__construct(), 0 passed in /Users/zyel/Herd/project-name/vendor/pxlrbt/filament-spotlight/src/Commands/ResourceCommand.php on line 40 and exactly 1 expected

Too few arguments to function App\Filament\Resources\[ResourcesName]\Pages\ListData::__construct(), 0 passed in /Users/zyel/Herd/project-name/vendor/pxlrbt/filament-spotlight/src/Commands/ResourceCommand.php on line 40 and exactly 1 expected
pxlrbt commented 2024-07-29 09:23:57 +00:00 (Migrated from github.com)

You can exclude that page via shouldRegisterSpotlight() ( as Spotlight doesn't know what arguments it requires.

https://github.com/pxlrbt/filament-spotlight?tab=readme-ov-file#excluding-pages

You can exclude that page via `shouldRegisterSpotlight()` ( as Spotlight doesn't know what arguments it requires. https://github.com/pxlrbt/filament-spotlight?tab=readme-ov-file#excluding-pages
kamaludin21 commented 2024-08-04 08:08:09 +00:00 (Migrated from github.com)

You can exclude that page via shouldRegisterSpotlight() ( as Spotlight doesn't know what arguments it requires.

https://github.com/pxlrbt/filament-spotlight?tab=readme-ov-file#excluding-pages

Thank's, already have in docs, sorry 😅😅

> You can exclude that page via `shouldRegisterSpotlight()` ( as Spotlight doesn't know what arguments it requires. > > https://github.com/pxlrbt/filament-spotlight?tab=readme-ov-file#excluding-pages Thank's, already have in docs, sorry 😅😅
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
pxlrbt/filament-spotlight#46
No description provided.