elmudometal
Explore posts from serversWould it be hard to move a complete Filament project to Multi-tenancy ?
It's not that complex, but it will depend a lot on the distribution of your app. If you have filters or data that are searched in those livewire or custom plugins, you should take that into account. The rest is quite simple to apply.
8 replies
Register Filepond Plugin
https://github.com/elmudometal/filament-custom-attribute-file-upload
This plugin takes the input in the image and saves it in the name field of the media library space
15 replies
TLCTuto's Laravel Corner
•Created by elmudometal on 11/28/2024 in #💡filament
How can I pre-fill or pre-check records from the table?, is possible?
Thank you very much, I managed to do it through an event
4 replies
set config(['livewire.temporary_file_upload.disk' => 'local']); to local in one resouce import file
I currently do this:
class ListPoints extends ListRecords
{
protected static string $resource = PointResource::class;
protected function getActions(): array
{
config(['livewire.temporary_file_upload.disk' => 's3']);
return [
Actions\CreateAction::make()
->label('Create Point'),
ImportAction::make('poits')
->label('Import Points')
->fields([...
but it still saves the temp file in s3
3 replies
problem saving pivot table
class OrdenCategoria extends Pivot
{
protected static function booted(): void
{
static::creating(function ($ordenCategoria) {
if (empty($ordenCategoria->inscripcion_id)) {
$ordenCategoria->inscripcion_id = $ordenCategoria?->pivotParent?->inscripcion_id;
}
});
}
}
9 replies
problem saving pivot table
My idea was to create a registration form and this adds a repeat of orders and in the orders I added the categories (this one as select multiple) but since the registration has not yet been created I do not have the id so when saving everything it fails in this relationship multi foreign
9 replies