How can use a ->spa() mode in Filamentphp?

Hey guys, i found this option https://filamentphp.com/docs/3.x/panels/configuration#spa-mode in filamentphp and try to use but return me an error:
BadMethodCallException
PHP 8.2.4
10.28.0
Method Filament\Panel::spa does not exist.
BadMethodCallException
PHP 8.2.4
10.28.0
Method Filament\Panel::spa does not exist.
this is my configuration in composer.json:
"require": {
"php": "^8.1",
"filament/filament": "3.0-stable",
"guzzlehttp/guzzle": "^7.2",
"laravel/framework": "^10.10",
"laravel/sanctum": "^3.2",
"laravel/tinker": "^2.8",
"maatwebsite/excel": "^3.1",
"psr/simple-cache": "1.0",
"transbank/transbank-sdk": "~2.0"
},
"require-dev": {
"barryvdh/laravel-debugbar": "^3.9",
"fakerphp/faker": "^1.9.1",
"laravel/pint": "^1.0",
"laravel/sail": "^1.18",
"mockery/mockery": "^1.4.4",
"nunomaduro/collision": "^7.0",
"phpunit/phpunit": "^10.1",
"spatie/laravel-ignition": "^2.0"
},
"require": {
"php": "^8.1",
"filament/filament": "3.0-stable",
"guzzlehttp/guzzle": "^7.2",
"laravel/framework": "^10.10",
"laravel/sanctum": "^3.2",
"laravel/tinker": "^2.8",
"maatwebsite/excel": "^3.1",
"psr/simple-cache": "1.0",
"transbank/transbank-sdk": "~2.0"
},
"require-dev": {
"barryvdh/laravel-debugbar": "^3.9",
"fakerphp/faker": "^1.9.1",
"laravel/pint": "^1.0",
"laravel/sail": "^1.18",
"mockery/mockery": "^1.4.4",
"nunomaduro/collision": "^7.0",
"phpunit/phpunit": "^10.1",
"spatie/laravel-ignition": "^2.0"
},
Solution:
Add ^3.0 in the filament version and run composer update
Jump to solution
2 Replies
Solution
LeandroFerreira
LeandroFerreira13mo ago
Add ^3.0 in the filament version and run composer update
TranceCode
TranceCodeOP13mo ago
thank you bro! it's working
Want results from more Discord servers?
Add your server