F
Filament9mo ago
vkDas

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
vkDas
vkDas9mo ago
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.
Dennis Koch
Dennis Koch9mo ago
Can you check the current version through composer? composer show filament/filament
vkDas
vkDas9mo ago
It is showing versions : * v3.0.8
Dennis Koch
Dennis Koch9mo ago
Yeah that’s not up to date. We are on 3.0.91. What constraint to you have in your composer.json?
vkDas
vkDas9mo ago
In my composer.json "filament/filament": "^3.0-stable"
Zetto
Zetto9mo ago
delete your composer.lock file and vendor folder then redo composer install
vkDas
vkDas9mo ago
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.
toeknee
toeknee9mo ago
Is filament fully up to date now?
vkDas
vkDas9mo ago
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.
Vp
Vp9mo ago
remove -stable and try composer update
vkDas
vkDas9mo ago
No, removing the -stable and running composer update didn't change the version either. It's still stuck at v3.0.8.
toeknee
toeknee9mo ago
you need to upgrade the package
vkDas
vkDas9mo ago
I did try upgrading the Filament package, but it's still showing as v3.0.8.
toeknee
toeknee9mo ago
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
Dennis Koch
Dennis Koch9mo ago
No need to remove lock files for updating. What’s the output of composer update? Any errors?
vkDas
vkDas9mo ago
No errors
ChesterS
ChesterS9mo ago
Maybe it's something else that preventing this? What are your PHP/Laravel/Livewire versions?
toeknee
toeknee9mo ago
Uusually, but it can be useful to debug
awcodes
awcodes9mo ago
My guess is you’re still on laravel 9. Filament 3.0.9 dropped support for laravel 9 due to livewire requiring laravel 10.
Dennis Koch
Dennis Koch9mo ago
Can you share your composer json?
vkDas
vkDas9mo ago
"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" },
Dennis Koch
Dennis Koch9mo ago
Okay as awcodes pointed out, you are still on Laravel 9 and it requires Laravel 10