the file does not appear in the repeater fileUpload (Custom Page)
I have this repeater(photo 1)
and a i have this data (photo 2)
code:
All fields are updated except the photo, could anyone tell me why?
and a i have this data (photo 2)
code:
Repeater::make('paid_amounts')
->model(PaidAmount::class)
->schema([
Grid::make(3)
->schema([
TextInput::make('name')
->translateLabel()
->columnSpan(1)
->extraAttributes(['class' => 'form-input']),
MoneyInput::make('value')
->translateLabel()
->columnSpan(1)
->extraAttributes(['class' => 'form-input']),
FileUpload::make('photo')
->imageEditor()
->image()
->translateLabel()
->columnSpan(1),
Actions::make([
Action::make('save')
->icon('heroicon-o-archive-box-arrow-down')
->color('success')
->action(function ($state) {
//new instance of paymentService based in fixed_order_id of select
$paymentService = new PaymentService(
FixedOrder::find($this->data['fixed_order_id'])->payment
);
//create a paid amount and return a instance of it service
PaidAmountService::create(
data: $state,
payment: $paymentService
);
})
])->verticalAlignment(VerticalAlignment::End),
Toggle::make('is_approved')
->translateLabel()
->columnSpan(1)
->extraAttributes(['class' => 'form-toggle']),
])
])Repeater::make('paid_amounts')
->model(PaidAmount::class)
->schema([
Grid::make(3)
->schema([
TextInput::make('name')
->translateLabel()
->columnSpan(1)
->extraAttributes(['class' => 'form-input']),
MoneyInput::make('value')
->translateLabel()
->columnSpan(1)
->extraAttributes(['class' => 'form-input']),
FileUpload::make('photo')
->imageEditor()
->image()
->translateLabel()
->columnSpan(1),
Actions::make([
Action::make('save')
->icon('heroicon-o-archive-box-arrow-down')
->color('success')
->action(function ($state) {
//new instance of paymentService based in fixed_order_id of select
$paymentService = new PaymentService(
FixedOrder::find($this->data['fixed_order_id'])->payment
);
//create a paid amount and return a instance of it service
PaidAmountService::create(
data: $state,
payment: $paymentService
);
})
])->verticalAlignment(VerticalAlignment::End),
Toggle::make('is_approved')
->translateLabel()
->columnSpan(1)
->extraAttributes(['class' => 'form-toggle']),
])
])All fields are updated except the photo, could anyone tell me why?

