david1686624
david1686624
FFilament
Created by oliverbusk on 1/10/2024 in #❓┊help
Tenant with an extra layer of ownership - uploading documents
I got the same problem. The way around it is that, I add team_id in model Document's $fillable. In ListDocument Actions\CreateAction::make() ->form([ FileUpload::make('name') ->required() ->storeFileNamesIn('original_filename') ]) ->mutateFormDataUsing(function (array $data): array { $data['team_id'] = Filament::getTenant()->id; return $data; }); and you should remove $tenantRelationshipName from youor DocumentResource.
9 replies