drsdre
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
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
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
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