F
Filament6mo ago
Anwar

Class "App\Models\Category" not found

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