F
Filament15mo ago
.

Class "App\Models\Category" not found

or any class not found. how can i solve it?
No description
5 Replies
Tieme
Tieme15mo ago
use App\Models\Category
.
.OP15mo ago
thanks , i used that but it didn't work
Tieme
Tieme15mo ago
Share your full page code.
.
.OP15mo ago
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
DrByte
DrByte15mo ago
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.

Did you find this page helpful?