F
Filamentβ€’3w ago
Bart

Filament default ENUMS missing

Hi all, ever since I started using Filament (I am on v3.2) I cannot seem to use any of the default ENUMS that I find in the docs. Examples: use Filament\Support\Enums\IconPosition; "Undefined class 'IconPosition' " use Filament\Support\Enums\IconSize; "Undefined class 'IconSize'" And so on. Has any one of you experienced the same thing? I actually cannot find these enums in the codebase either. Either I really don't understand or have some kind of incomplete install or so? Hope anyone can shine a light πŸ˜‰
Solution:
Update: all okay now. Seemed that there also were some published filament views which caused troubles now. Deleted them and all is fine. Thanks again πŸ™
Jump to solution
7 Replies
awcodes
awcodesβ€’3w ago
Run composer update you’re probably not on the latest filament.
Bart
Bartβ€’3w ago
Guess that's a rookie mistake, sorry about that. Now have the enum files, so that's great. Use statement still cannot find them, although the file is there. Is there a need to vendor publish stuff?
Dennis Koch
Dennis Kochβ€’3w ago
Not really. Your IDE/code editor cache probably needs to be updated
Bart
Bartβ€’3w ago
Well, I have done cache clear even in PHPStorm and all, but still it doesn't really want to move forward. The files are there (see the directory tree), but still in the code it cannot find them. Am I just missing something obvious here?
No description
Dennis Koch
Dennis Kochβ€’3w ago
I'd try the "File > Repair IDE" command from PhpStorm.
Bart
Bartβ€’3w ago
Updated PHPstorm and that seems to have fixed it. Still doesn't work in the project when I run it however, so will check some cache stuff for that. Really appreciate the help so far πŸ™‚
Solution
Bart
Bartβ€’3w ago
Update: all okay now. Seemed that there also were some published filament views which caused troubles now. Deleted them and all is fine. Thanks again πŸ™
Want results from more Discord servers?
Add your server