.. php artisan powergrid:create fails to create a working collection based component. The error occurs when trying to create a subfolder using a dot in the name eg( Products.VendorDataTables ). You get an error
The generated component has the class
final class Products/VendorDataTables extends PowerGridComponent
removing the / will take away this error. However you will now get this error when you attempt to use '' (as recommended by cli) same result when you use .
Livewire\Exceptions\ComponentNotFoundException
Unable to find component: [products-vendor-data-tables]
Same thing happens if you move the component into a sub-directory manually. However if creating a model based component it works as intended.
To Reproduce
run php artisan powergrid:create enter name as Products.VendorDataTables and select Collection instead of model. try to use component in template.
Laravel version (exactly):
Describe the bug
The generated component has the class' (as recommended by cli) same result when you use .
final class Products/VendorDataTables extends PowerGridComponent
removing the / will take away this error. However you will now get this error when you attempt to use 'Same thing happens if you move the component into a sub-directory manually. However if creating a model based component it works as intended. To Reproduce run php artisan powergrid:create enter name as Products.VendorDataTables and select Collection instead of model. try to use component in template. Laravel version (exactly):
Alpine version:
Theme:
[ ] Tailwind
[x] Bootstrap
Screenshots (This helps to understand better)
Do you have any idea how we can fix it?