feat: Redirect to resource index page after create and edit operations.

This commit is contained in:
Yoga Pangestu 2026-01-05 15:06:59 +07:00
parent a0da450e52
commit 20804431c5
9 changed files with 45 additions and 0 deletions

View File

@ -22,4 +22,9 @@ protected function getHeaderActions(): array
->color('secondary'),
];
}
protected function getRedirectUrl(): string
{
return $this->getResource()::getUrl('index');
}
}

View File

@ -20,4 +20,9 @@ protected function getHeaderActions(): array
->color('secondary'),
];
}
protected function getRedirectUrl(): string
{
return $this->getResource()::getUrl('index');
}
}

View File

@ -22,4 +22,9 @@ protected function getHeaderActions(): array
->color('secondary'),
];
}
protected function getRedirectUrl(): string
{
return $this->getResource()::getUrl('index');
}
}

View File

@ -21,4 +21,9 @@ protected function getHeaderActions(): array
->color('secondary'),
];
}
protected function getRedirectUrl(): string
{
return $this->getResource()::getUrl('index');
}
}

View File

@ -22,4 +22,9 @@ protected function getHeaderActions(): array
->color('secondary'),
];
}
protected function getRedirectUrl(): string
{
return $this->getResource()::getUrl('index');
}
}

View File

@ -20,4 +20,9 @@ protected function getHeaderActions(): array
->color('secondary'),
];
}
protected function getRedirectUrl(): string
{
return $this->getResource()::getUrl('index');
}
}

View File

@ -20,4 +20,9 @@ protected function getHeaderActions(): array
->color('secondary'),
];
}
protected function getRedirectUrl(): string
{
return $this->getResource()::getUrl('index');
}
}

View File

@ -24,6 +24,11 @@ protected function getHeaderActions(): array
];
}
protected function getRedirectUrl(): string
{
return $this->getResource()::getUrl('index');
}
protected function handleRecordCreation(array $data): Model
{
$data['author_id'] = auth()->id();

View File

@ -20,4 +20,9 @@ protected function getHeaderActions(): array
->color('secondary'),
];
}
protected function getRedirectUrl(): string
{
return $this->getResource()::getUrl('index');
}
}