© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•11mo ago•
3 replies
frame

Testing ListResources page with tenancy (missing parameter: tenant)

What am I missing here? 🤔
test('lists groups', function () {
    livewire(GroupResource\Pages\ListGroups::class, [
        'tenant' => $this->client->uuid,
    ])->assertOk();
});
test('lists groups', function () {
    livewire(GroupResource\Pages\ListGroups::class, [
        'tenant' => $this->client->uuid,
    ])->assertOk();
});

Missing required parameter for [Route: filament.instructors.resources.groups.index] [URI: instructors/{tenant}/groups] [Missing parameter: tenant]
Missing required parameter for [Route: filament.instructors.resources.groups.index] [URI: instructors/{tenant}/groups] [Missing parameter: tenant]

GET|HEAD   instructors/{tenant}/groups ... filament.instructors.resources.groups.index › App\Filament\Instructors\Resources\GroupResource\Pages\ListGroups
GET|HEAD   instructors/{tenant}/groups ... filament.instructors.resources.groups.index › App\Filament\Instructors\Resources\GroupResource\Pages\ListGroups
Solution
Tenant is set separately not as a parameter to
livewire
livewire

Filament::setTenant($this->client);
Filament::setTenant($this->client);
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

[Missing parameter: tenant] On custom tenant page ?
FilamentFFilament / ❓┊help
17mo ago
Missing parameter {tenant}
FilamentFFilament / ❓┊help
3y ago
Profile page with tenancy/parameter not set 'tenant' in getUrl()
FilamentFFilament / ❓┊help
14mo ago
Missing tenant parameter on routes
FilamentFFilament / ❓┊help
3y ago