elmudometal
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
problem saving pivot table
It is a registration system where a registration can have many categories but at the same time it has payment order registrations:
1 registration has many categories
1 registration has many payment orders
but for example:
1 payment order has 2 categories and another payment order has 1 category
This results in:
1 registration with 3 categories
All this logic for the user view is created but I can't get it to filament
9 replies
how can i add extra text to modal, which is a link, and a text like a note in filament import?
It was a mixture of many things:
does not work with s3
I got an error with TrustProxies "https fails signature verification"
so use livewire local and storage s3
19 replies