Class "App\Models\Category" not found
or any class not found.
how can i solve it?
5 Replies
use App\Models\Category
thanks , i used that but it didn't work
Share your full page code.
Models Do not download automatically when creating resources
I used another solution after creating resources
php artisan make:filament-resource category
php artisan make:model Category -m
php artisan migrate
thank you
Right. Actually it's best to create the Model first, and its migration, and declare its casts .. and run the migration. And THEN create your Resource for it. If you pass the --generate parameter when creating the resource, it'll build the form and table entries for you from the migrated model, saving you a bunch of work.