F
Filament15mo 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
Vp15mo ago
composer update?
Xiquita
XiquitaOP15mo ago
Hi, I did composer install
Quadrubo
Quadrubo15mo 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
XiquitaOP15mo ago
No description
No description
Xiquita
XiquitaOP15mo ago
v3.0.0.0
Vp
Vp15mo ago
do composer update
Xiquita
XiquitaOP15mo ago
the same mistake ok
Xiquita
XiquitaOP15mo ago
No description
Vp
Vp15mo ago
Weird, because route prefix was introduce in v3.0.17 https://github.com/filamentphp/filament/pull/7655
Xiquita
XiquitaOP15mo ago
yes and it is part of the documentation, I find it strange that it doesn't work
Vp
Vp15mo ago
run php artisan about and post here please, just to confirm
Xiquita
XiquitaOP15mo ago
No description
Vp
Vp15mo 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
XiquitaOP15mo ago
No description
Vp
Vp15mo ago
No, in full.. Just copy and paste here, wrap with three backticks ```
Xiquita
XiquitaOP15mo 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
Vp15mo ago
Change "minimum-stability": "stable" and try composer update hope it works Otherwise, you need to find how to update
Solution
awcodes
awcodes15mo ago
Change the filament version constraint from “3.0-stable” to “^3.0”. Then run composer update
Xiquita
XiquitaOP15mo ago
OK thanks OK thanks
Want results from more Discord servers?
Add your server