Getting a `required` validation error when running the `make:filament-widget` command
In the latest version (
v3.0.63
), running artisan make:filament-widget
without using a resource, the 2nd step has an option, but you can't select it and you get the "Required" validation error.
Honestly, it's much more clear in the screenshot.
This has worked fine in the previous minor version (v3.0.62
) so I'm not sure if it's a bug or something has changed that I'm missing2 Replies
Seems to be a recent change in the
laravel/prompts
package. A potential fix is to change line filament/widgets/src/Commands/MakeWidgetCommand.php:86
and add a value to the default App\Livewire
option. eg
I might have time to create a PR for this but I'm not sure where else this needs to be appliedSolution
Can confirm, will PR it.