Method Filament\Panel::getDomains does not exist
I am trying to update my composer using
composer update
and then this error occurring Method Filament\Panel::getDomains does not exist
, How can i fix the error ? Thank you.22 Replies
I am still getting this error. How to fix this error ?
Hello, I've come across similar posts discussing the getDomains() function error. The common suggestion is to update Filament to its latest version or upgrade Composer to resolve this issue. However, in my situation, this error persists even after attempting to upgrade Filament or Composer. I'm seeking guidance on how to resolve this persistent error. Thank you.
Can you check the current version through composer?
composer show filament/filament
It is showing
versions : * v3.0.8
Yeah that’s not up to date. We are on 3.0.91. What constraint to you have in your composer.json?
In my composer.json
"filament/filament": "^3.0-stable"
delete your composer.lock file and vendor folder then redo composer install
Unfortunately, deleting the composer.lock file and the vendor folder and then running composer install did not resolve the issue. I still encounter the same problem when attempting to update composer after re installing the composer. If you have any other suggestions or if there are additional details I can provide, please let me know. Thank you for your assistance.
Is filament fully up to date now?
No, I deleted the composer.lock file and the vendor directory, then I ran composer install. However, the 'filament/filament' version remained at v3.0.8, and I was expecting it to update to v3.0.91.
remove
-stable
and try composer update
No, removing the
-stable
and running composer update
didn't change the version either. It's still stuck at v3.0.8
.you need to upgrade the package
I did try upgrading the Filament package, but it's still showing as v3.0.8.
Ok, you will need to learn how to use composer properly, it's pretty important in the laravel ecosystem
composer upgrade should work, but you'll need to remove you lock file and ensure you are finding greater than 3.0 and then upgrade
No need to remove lock files for updating.
What’s the output of composer update? Any errors?
No errors
Maybe it's something else that preventing this? What are your PHP/Laravel/Livewire versions?
Uusually, but it can be useful to debug
My guess is you’re still on laravel 9. Filament 3.0.9 dropped support for laravel 9 due to livewire requiring laravel 10.
Can you share your composer json?
"require": {
"php": "^8.1",
"althinect/filament-spatie-roles-permissions": "^2.0",
"bensampo/laravel-enum": "^6.6",
"dutchcodingcompany/filament-socialite": "dev-support-filament-v3",
"filament/filament": "^3.0-stable",
"filament/spatie-laravel-settings-plugin": "^3.0-stable",
"guzzlehttp/guzzle": "^7.2",
"jerrygaoyang/laravel-jwt": "^1.0",
"laravel/framework": "^9.19",
"laravel/sanctum": "^3.0",
"laravel/tinker": "^2.7",
"marekweb/opaque-id": "dev-master",
"markrogoyski/math-php": "2.*",
"monarobase/country-list": "^3.3",
"nettantra/filament-slider-input-field": "^0.0.6",
"owenvoke/blade-fontawesome": "^2.4",
"psr/simple-cache": "^1.0",
"pxlrbt/filament-excel": "^2.1",
"spatie/laravel-settings": "^3.2",
"stechstudio/filament-impersonate": "^3.5",
"venturecraft/revisionable": "^1.39",
"webbingbrasil/filament-advancedfilter": "^3.0@beta",
"wpb/string-blade-compiler": "^6.0"
},
"require-dev": {
"fakerphp/faker": "^1.20",
"filament/upgrade": "^3.0-stable",
"kkomelin/laravel-translatable-string-exporter": "^1.17",
"laravel/pint": "^1.0",
"laravel/sail": "^1.0.1",
"mockery/mockery": "^1.4.4",
"nunomaduro/collision": "^6.1",
"pestphp/pest": "^1.21",
"pestphp/pest-plugin-laravel": "^1.2",
"phpunit/phpunit": "^9.5.10",
"spatie/laravel-ignition": "^1.0"
},
Okay as awcodes pointed out, you are still on Laravel 9 and it requires Laravel 10