Error on creating resource with custom --model-namespace
Hi All,
I want to create a resource with following command
php artisan make:filament-resource Customer --generate --soft-deletes --view --model-namespace=App\\Models\\Team
as documented here https://filamentphp.com/docs/3.x/panels/resources/getting-started#specifiying-a-custom-model-namespace
This throws me a Fatal error :
How can i handle custom model namespace ?
i already have tried --model-namespace=App\\Models\\Team\\Customer
this wil create the resource, only not generate all the fields for me and also namespace is wrong.1 Reply
The workaround for now is moving the model to App/Models and don't use the
--model-namespace=
And than moving it back to my Team folder/namepsace and change the model namespace in resource
But if anyone know wat i'm doing wrong i would really want to know the solution.