Class "Filament\Forms\Components\TextArea" not found
Hi everyone, I built an application with filament and everything works fine locally. However, when I upload to a shared server (cpanel) and visit any page that has a form and uses the "TextArea" form component I get an error.
Class "Filament\Forms\Components\TextArea" not found
If I replace the textarea component with a textinput component then it works again. Meanwhile, on local this issue is non existent.
Please, someone help me out with issue.
4 Replies
Laravel typically doesn’t play well with shared servers. Only thing I can think is to try to delete the vendor directory and reinstall you composer packages.
Hi! I know Macs allow namespaces to be upper and lowercase and it doesn't care, but most of the servers do care! I believe the class is actually
Filament\Forms\Components\Textarea.php
and not Filament\Forms\Components\TextArea.php
, that might be causing issuesEddie is right. Good catch. I totally missed that. The class name is actually
Textarea
Thanks so much! this fixed the issue.
Thanks for the help.