tenantRoutePrefix
Hello, ->tenantRoutePrefix() does not exist? I'm trying to use it but I can't find it
Solution:Jump to solution
Change the filament version constraint from “3.0-stable” to “^3.0”. Then run
composer update
19 Replies
composer update?
Hi, I did composer install
which filament version are you on
and can you share the code where you tried to use it
should show up in
artisan about
v3.0.0.0
do composer update
the same mistake
ok
Weird, because route prefix was introduce in
v3.0.17
https://github.com/filamentphp/filament/pull/7655yes and it is part of the documentation, I find it strange that it doesn't work
run
php artisan about
and post here please, just to confirmYour 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
No, in full..
Just copy and paste here, wrap with three backticks ```
'{
"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
}
Change
"minimum-stability": "stable"
and try composer update
hope it works
Otherwise, you need to find how to updateSolution
Change the filament version constraint from “3.0-stable” to “^3.0”. Then run
composer update
OK thanks
OK thanks