Redirect to create page after submit
This commit is contained in:
@@ -9,4 +9,9 @@ use Filament\Resources\Pages\CreateRecord;
|
|||||||
class CreateProductionPlan extends CreateRecord
|
class CreateProductionPlan extends CreateRecord
|
||||||
{
|
{
|
||||||
protected static string $resource = ProductionPlanResource::class;
|
protected static string $resource = ProductionPlanResource::class;
|
||||||
|
|
||||||
|
protected function getRedirectUrl(): string
|
||||||
|
{
|
||||||
|
return $this->getResource()::getUrl('create'); // Stay on Create Page after saving
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user