Refactor EditPage class: Updated getRedirectUrl method to return null for staying on the same page, enhancing user experience. Added new custom Blade view for rendering dynamic data blocks, improving flexibility in content management.

This commit is contained in:
Ümit Tunç
2025-10-30 17:21:39 -03:00
parent d0a7cd3ef1
commit d5458ec0e3
2 changed files with 5 additions and 2 deletions
@@ -50,9 +50,9 @@ class EditPage extends EditRecord
return []; // Boş array döndürerek alt taraftaki form action'larını gizliyoruz
}
protected function getRedirectUrl(): string
protected function getRedirectUrl(): ?string
{
return $this->getResource()::getUrl('index');
return null; // Aynı sayfada kal
}
protected function getSavedNotificationTitle(): ?string