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?
Amiejah•151d ago
aren't you supposed to have the Team model set before using the relationship?
Filament is a collection of beautiful full-stack components for Laravel.You can get help using it on our Discord.
15KMembers
View on DiscordWant results from more Discord servers?
More PostsHow to mutate data on form submit of Relation Manager?Its all in the question:)Eager Loading Relation ManagerIs there a way to apply Eager Loading within a Relation Manager to OwnerRecord as well as to the subkeyBindings() only work first timekeyBindings() only work in first try, then nothing happen. Any solution?Is my Form Component possible?I'm trying to create an "Outline Generator" in Filament. I have achieved this already using Livewire