© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•16mo ago•
13 replies
Ookma-Kyi

Set table to use for filament resource

I am trying to use Filament with Laravel Permissions and have run into an issue. I set the model relationship manually
protected static ?string $model = Model_Has_Roles::class;
protected static ?string $model = Model_Has_Roles::class;
as that's what the table is called. However when I try to access it I get the following error:

QLSTATE[42S02]: Base table or view not found: 1146 Table 'ookma-kyi.model__has__roles' doesn't exist

select count(*) as aggregate from `model__has__roles`
QLSTATE[42S02]: Base table or view not found: 1146 Table 'ookma-kyi.model__has__roles' doesn't exist

select count(*) as aggregate from `model__has__roles`

It seems Filament added an additional
_
_
between each word as it should be
model_has_roles
model_has_roles
. I tried to search the documentation but, didn't find anything at the time. Could someone please steer me in the right direction?
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

Filament resource for Markable
FilamentFFilament / ❓┊help
2y ago
Filament table: related resource with traits
FilamentFFilament / ❓┊help
3y ago
Limiting Filament Table to User-Accessible in resource
FilamentFFilament / ❓┊help
2y ago
Filament getTabs method for table on custom resource page
FilamentFFilament / ❓┊help
11mo ago