• Mahmoud Aglan's avatar
    fix(website): validate section + theme edits and keep unpublished sites private · fa4c5088
    Mahmoud Aglan authored
    Section and theme editors wrote straight to columns that carry CHECK
    constraints, so a bad value surfaced as a 500 rather than a field error.
    Adds rules() mirroring the constraints, Arabic messages(), and an error
    summary in both forms.
    
    home() also served unpublished sites to the public. Staff keep their
    preview route; everyone else is sent to login.
    
    Drops a redundant invalidateAll() from ThemeEditor::save(): the call
    passed an argument the method does not take, and would have flushed
    every tenant's cache. WebsiteSettingService::update() already
    invalidates the one academy that changed.
    Co-Authored-By: 's avatarClaude Opus 5 (1M context) <noreply@anthropic.com>
    fa4c5088
Name
Last commit
Last update
..
ContactSubmission.php Loading commit data...
Media.php Loading commit data...
WebsiteBlock.php Loading commit data...
WebsiteFaq.php Loading commit data...
WebsiteMenu.php Loading commit data...
WebsiteMenuItem.php Loading commit data...
WebsiteNews.php Loading commit data...
WebsitePage.php Loading commit data...
WebsitePartner.php Loading commit data...
WebsiteSection.php Loading commit data...
WebsiteSetting.php Loading commit data...
WebsiteTestimonial.php Loading commit data...