fix page creation validation and persistence

Validate required page fields and localized translations, detect route collisions, and save pages and translations atomically with rollback on failure. Report creation errors while preserving submitted form values, safely encode Alpine.js values, and add English and German error messages. Return null for failed inserts and add page persistence tests.
This commit is contained in:
2026-11-24 21:42:14 +00:00
parent 956eca181f
commit 15cd385126
8 changed files with 641 additions and 43 deletions
+1
View File
@@ -30,6 +30,7 @@ return [
'theme' => 'Theme',
'visible-in-page-overview' => 'visible in page overview',
'page-created' => 'Page successfully created',
'page-create-failed' => 'Page could not be created. Check required fields, localized values, routes, and the database connection, then try again.',
'page-updated' => 'Page successfully updated',
'page-deleted' => 'Page removed',
'page-type' => 'Page type',