F
Filament12mo ago
Anwar

Class "App\Models\Category" not found

or any class not found. how can i solve it?
No description
5 Replies
Tieme
Tieme12mo ago
use App\Models\Category
Anwar
AnwarOP12mo ago
thanks , i used that but it didn't work
Tieme
Tieme12mo ago
Share your full page code.
Anwar
AnwarOP12mo 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
DrByte12mo 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.
Want results from more Discord servers?
Add your server