drsdre
drsdre
FFilament
Created by drsdre on 2/27/2025 in #❓┊help
User registration with field for team/tenant name
This is the registration i.e. create form where both user and team are created. There is no relationship because there are no records at that point.
10 replies
FFilament
Created by drsdre on 2/27/2025 in #❓┊help
User registration with field for team/tenant name
The approach I'm currently looking at is using the mutateFormDataBeforeRegister() function to filter out the fields meant for the teams table and overloading the 'register()' function by updating the team model using Filament::getTenant(). This means however that the team model requires two database interactions (create and update).
10 replies
FFilament
Created by drsdre on 2/27/2025 in #❓┊help
User registration with field for team/tenant name
It's a (multi-)tenant setup. The user and team tables are in place. The question is about keeping the functionality in the 'register()' function in Filament\Pages\Auth\Register.php and also have the ability to update the team related fields.
10 replies
FFilament
Created by drsdre on 2/27/2025 in #❓┊help
User registration with field for team/tenant name
Not sure what you mean with child table.
10 replies
FFilament
Created by Nashoba on 2/27/2025 in #❓┊help
It is not possible to use a variable inside the make() of a FileUpload field ?
I'm not familiar what the '->name("{$eye}_pdf")' part of the FileUpload definition is supposed to do. Maybe give it a try without.
12 replies
FFilament
Created by Nashoba on 2/27/2025 in #❓┊help
It is not possible to use a variable inside the make() of a FileUpload field ?
The synthesizer error is coming from livewire/livewire/src/Mechanisms/HandleComponents/HandleComponents.php line 498. I would suggest to set a breakpoint on this line where $key=='' and check the context and path variables.
12 replies
FFilament
Created by Nashoba on 2/27/2025 in #❓┊help
It is not possible to use a variable inside the make() of a FileUpload field ?
With the 'make()' function your specify in which DB field the file reference for the upload is stored. That is not the file name itself. What I think you want to do is rename the files after the user uploaded them. Use the FileUpload component function 'getUploadedFileNameForStorageUsing()' for this. See https://filamentphp.com/docs/3.x/forms/fields/file-upload#generating-custom-file-names
12 replies