© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
1 reply
ThiNha

Error "Field 'team_id' doesn't have a default value" when use select relationship function.

I used Filament V3 with Spatie Laravel Permission and used the TEAMS features as the team_id variable.

When I used

Select::make('roles')
->relationship('roles','name')
->preload(),
I got SQLSTATE[HY000]: General error: 1364 Field 'team_id' doesn't have a default value

Anyone issue same me, you help me, please?
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

Field 'product_id' doesn't have a default value
FilamentFFilament / ❓┊help
2y ago
Multi-tenancy and createOptionForm on Select, Field 'company_id' doesn't have a default value
FilamentFFilament / ❓┊help
3y ago
SQLSTATE[HY000]: General error: 1364 Field 'user_id' doesn't have a default value
FilamentFFilament / ❓┊help
3y ago
SQLSTATE[HY000]: General error: 1364 Field 'guardian_id' doesn't have a default value
FilamentFFilament / ❓┊help
3y ago