F
Filament4mo ago
BBB

Edit issue with package

Hi, Package : laravel-translatable astrotomic Using the mentioned package, the EditRecord has an issue during validation: it saves correctly in the database, but the old data is displayed. I solved the problem by adding this:
protected function afterSave(): void
{
$this->record->refresh();
$this->form->fill($this->record->toArray());
}
protected function afterSave(): void
{
$this->record->refresh();
$this->form->fill($this->record->toArray());
}
Usually, I never encounter this problem, any ideas? Thank you.
0 Replies
No replies yetBe the first to reply to this messageJoin