elmudometal
Explore posts from serversRegister 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
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