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:
@@ -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
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
@foreach($data as $item)
|
||||
{!! $item['value'] !!}
|
||||
@endforeach
|
||||
Reference in New Issue
Block a user