Update v3

I can't update the domain en domains, what should I do ? I've done a composer update and a filament:upgrade but it still doesn't update the HasRoutes folder.
24 Replies
Patrick Boivin
Patrick Boivin11mo ago
I don't understand the issue... what is not being updated exactly?
Becker Maxime
Becker Maxime11mo ago
I got the error Bad Method Call: Did you mean Filament\Panel::getDomain() ?. I can't update to the latest version of filament php. I know that now the function must I named getDomains() how to do?
Patrick Boivin
Patrick Boivin11mo ago
I'm not sure, have you tried php artisan optimize:clear ?
Becker Maxime
Becker Maxime11mo ago
yes, and I still get the error that the HasRoutes file doesn't update from getDomain() to getDomains() @pboivin
Patrick Boivin
Patrick Boivin11mo ago
Which version of filament exactly? Can you run php artisan about.
Becker Maxime
Becker Maxime11mo ago
Becker Maxime
Becker Maxime11mo ago
Becker Maxime
Becker Maxime11mo ago
My error is that the HasRoutes file is not up to date, it keeps the getDomain() function when it should be getDomains().
Dennis Koch
Dennis Koch11mo ago
Make sure you really are on the latest v3 version of Filament and not on an alpha version.
Becker Maxime
Becker Maxime11mo ago
I'm on v3.0.8
Dan Harrin
Dan Harrin11mo ago
we are on .24 by now
Becker Maxime
Becker Maxime11mo ago
How can I upgrade to .24?
Dan Harrin
Dan Harrin11mo ago
composer update?
Becker Maxime
Becker Maxime11mo ago
Dan Harrin
Dan Harrin11mo ago
Becker Maxime
Becker Maxime11mo ago
I still have the same problem with getDomains() 😦
Dennis Koch
Dennis Koch11mo ago
Then you are very probable still not on the latest version.
Becker Maxime
Becker Maxime11mo ago
Here's my composer.json, I deleted the vendor and redid composer update and I still get the error, is there an error in my composer.json?
Dennis Koch
Dennis Koch11mo ago
Looks fine if all the plugins are compatible. But doesn't say anything about the real installed version. Do a composer info filament/filament and check for the real version.
Becker Maxime
Becker Maxime11mo ago
I can't get any version other than 3.0.8.
Dennis Koch
Dennis Koch11mo ago
Then probably some of your dependencies block the update. Try composer update -W
Becker Maxime
Becker Maxime11mo ago
No, it's always the same. Could it be because I'm using Laravel 9 and not 10 ?
Dennis Koch
Dennis Koch11mo ago
Oh right. I missed that one. LW requires Laravel 10 now, so we follow that
Becker Maxime
Becker Maxime11mo ago
Ok, thank you very much for your help, I'll try with laravel 10 sorry for the inconvenience.