N1XN
Save prefix values
How can I save the TextInput including the prefix? I know that I can extend the
handleRecordCreation
method but then I would have the string prefix saved to DB (this is actually wanted and needed) but showing or editing the record would have the prefix and the prefixed string - basically double prefixed.
4 replies
Disable auth (cache)
php artisan route:cache
"reanables" disabled routes.
- setting login to null in /config/filament.php
- permanently redirect to my auth in /routes/auth.php
https://discord.com/channels/883083792112300104/11437397139251529294 replies
Unable to retrieve the mime_type for file at location: livewire-tmp/kHGEXYiSJSh3w2av6KCn8cYKvfexf6-m
Trying to upload files via
SpatieMediaLibraryFileUpload
but results in error:
config/filesystem.php
Inside filament form
The images get uploaded to minio but to livewire-tmp
4 replies
RelationManager attempts to lazy load relations
I have created an Attribute to display a range, which combines
min
and max
BelongsTo Relations, but I get the enabled strictMode
error thrown.
Attempted to lazy load [minDose] on model [App\Models\PatientMedication] but lazy loading is disabled.
Is there a way how I can manually load the needed relations via TextColumn
API?
3 replies
Steps in CreateAction sets only last steps formData
When submitting the form and inspecting the
before()
methods $data
only the data from the last step is set, resulting in failed inserts as the data from first step is required. Am I using a relation manager, but this should not be any issue I guess.
In the below example $data['milk']
does not exist in before()
1 replies
TextInput with Relation best practice?
How do you guys manage relational Forms? As you can see here I want to populate the city on a relational model (address). With this code everything works fine, but I am not sure if this is best practice?
4 replies
Scopes not applied to relations in getEloquentQuery
In my case I have
Tenant
and Address
models that are connected with each other. The Address
has tenant_id
so a user can only display its own addresses through his own tenant. I have a TenantResource
only for admins where all tenants are listed including their address and country code.
My issue is that in the code below the getEloquentQuery
global scopes get ignored but when defined in the model it works.
Isn't this actually the same?
3 replies