pxlrbt / filament-spotlight

Quickly navigate your Filament pages
MIT License
239 stars 31 forks source link

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

Closed kamaludin21 closed 2 months ago

kamaludin21 commented 3 months ago

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 3 months ago

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 2 months ago

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 😅😅