F
Filament10mo ago
Xiquita

tenantRoutePrefix

Hello, ->tenantRoutePrefix() does not exist? I'm trying to use it but I can't find it
Solution:
Change the filament version constraint from “3.0-stable” to “^3.0”. Then run composer update
Jump to solution
19 Replies
Vp
Vp10mo ago
composer update?
Xiquita
Xiquita10mo ago
Hi, I did composer install
Quadrubo
Quadrubo10mo ago
which filament version are you on and can you share the code where you tried to use it should show up in artisan about
Xiquita
Xiquita10mo ago
No description
No description
Xiquita
Xiquita10mo ago
v3.0.0.0
Vp
Vp10mo ago
do composer update
Xiquita
Xiquita10mo ago
the same mistake ok
Xiquita
Xiquita10mo ago
No description
Vp
Vp10mo ago
Weird, because route prefix was introduce in v3.0.17 https://github.com/filamentphp/filament/pull/7655
Xiquita
Xiquita10mo ago
yes and it is part of the documentation, I find it strange that it doesn't work
Vp
Vp10mo ago
run php artisan about and post here please, just to confirm
Xiquita
Xiquita10mo ago
No description
Vp
Vp10mo ago
Your filament is 3.0.0 and route prefix is 3.0.17, you need to update that one, but I don't know why "composer update" doesn't update automatically Can you post your composer.json
Xiquita
Xiquita10mo ago
No description
Vp
Vp10mo ago
No, in full.. Just copy and paste here, wrap with three backticks ```
Xiquita
Xiquita10mo ago
'{ "name": "laravel/laravel", "type": "project", "description": "The skeleton application for the Laravel framework.", "keywords": [ "laravel", "framework" ], "license": "MIT", "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" }, "require-dev": { "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" }, "autoload": { "psr-4": { "App\": "app/", "Database\Factories\": "database/factories/", "Database\Seeders\": "database/seeders/" } }, "autoload-dev": { "psr-4": { "Tests\": "tests/" } }, "scripts": { "post-autoload-dump": [ "Illuminate\Foundation\ComposerScripts::postAutoloadDump", "@php artisan package:discover --ansi", "@php artisan filament:upgrade" ], "post-update-cmd": [ "@php artisan vendor:publish --tag=laravel-assets --ansi --force" ], "post-root-package-install": [ "@php -r "file_exists('.env') || copy('.env.example', '.env');"" ], "post-create-project-cmd": [ "@php artisan key:generate --ansi" ] }, "extra": { "laravel": { "dont-discover": [] } }, "config": { "optimize-autoloader": true, "preferred-install": "dist", "sort-packages": true, "allow-plugins": { "pestphp/pest-plugin": true, "php-http/discovery": true } }, "minimum-stability": "dev", "prefer-stable": true }
Vp
Vp10mo ago
Change "minimum-stability": "stable" and try composer update hope it works Otherwise, you need to find how to update
Solution
awcodes
awcodes10mo ago
Change the filament version constraint from “3.0-stable” to “^3.0”. Then run composer update
Xiquita
Xiquita10mo ago
OK thanks OK thanks