Is there a way to create a resource inside a directory?

I use: php artisan make:filament-resource -G --soft-deletes --panel=admin Sales\Brand This creates: App\Filament\Admin\Resources\Sales\Brands\BrandResource.php .... With this model App\Models\Sales\Brand.php If I use: php artisan make:filament-resource -G --soft-deletes --panel=admin Mydirectory\Sales\Brand --model-namespace=App\Models\Sales This creates: App\Filament\Admin\Resources\Mydirectory\Sales\Brands\BrandResource.php .... But the problem is that inside BrandResource.php the Model has an incorrect reference: ... use App\Models\Sales\Brand\Mydirectory\Sales\Brand; ... It should be: use App\Models\Sales\Brand;
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?