-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue and adding to the doc: Field team_id doesn't have a default value #138
Comments
@juleindev which file is this? Running in this problem now |
In the Form of your UserResource file for example |
@juleindev I also get it on the roles resource page. Did you found a fix for that? |
I didn't had any issue with the package in the Role resource, if you were follow the Tenant Section of the documentation. Can you put a screenshot of the error message? |
Its exactly the same as yours but I’m using restaurant_id instead of company_id
|
@CodeTechNL did you ever solve the issue? |
@irvingviveros Hmm, I've got the issue when attaching a user to the role, which happens automatically on creating a role.. Basically making the package unusable |
The |
Ok now I am facing the same issue. I can attach a role when I am creating a user, but when I try to attach a Role to the User Resource with RolesRelationManager, I got the same error (1364 Field 'team_id' doesn't have a default value)
I've been researching this error for several days but I can't find the answer. It also happens with the RoleResource and the UserRelationManager generated by the package, I cannot attach users to the role on the edit page because the same problem occurs. I have already tried installing the plugin twice in a clean installation but I can't get it to run correctly. Perhaps more information is needed on this or it is a bit ambiguous. I appreciate the efforts the team behind the plugin put into maintaining it. |
You must create an extend the Spatie Role model and override by adding "withPivotValue": `namespace App\Models; use Filament\Facades\Filament; class Role extends RoleSpatie
|
Could you add this to your documentation for the tenant section?
The text was updated successfully, but these errors were encountered: