- Neues Sparkbooth-Upload-Feature: Endpoint /api/sparkbooth/upload (Token-basiert pro Galerie), Controller Api/SparkboothUploadController, Migration 2026_01_21_000001_add_upload_fields_to_galleries_table.php mit Upload-Flags/Token/Expiry;
Galerie-Modell und Factory/Seeder entsprechend erweitert.
- Filament: Neue Setup-Seite SparkboothSetup (mit View) zur schnellen Galerie- und Token-Erstellung inkl. QR/Endpoint/Snippet;
Galerie-Link-Views nutzen jetzt simple-qrcode (Composer-Dependency hinzugefügt) und bieten PNG-Download.
- Galerie-Tabelle: Slug/Pfad-Spalten entfernt, Action „Link-Details“ mit Modal; Created-at-Spalte hinzugefügt.
- Zugriffshärtung: Galerie-IDs in API (ImageController, Download/Print) geprüft; GalleryAccess/Middleware + Gallery-Modell/Slug-UUID
eingeführt; GalleryAccess-Inertia-Seite.
- UI/UX: LoadingSpinner/StyledImageDisplay verbessert, Delete-Confirm, Übersetzungen ergänzt.
39 lines
820 B
PHP
39 lines
820 B
PHP
<?php
|
|
|
|
namespace App\Settings;
|
|
|
|
use DateTimeInterface;
|
|
use Spatie\LaravelSettings\Settings;
|
|
|
|
class GeneralSettings extends Settings
|
|
{
|
|
public string $gallery_heading = 'Style Gallery';
|
|
|
|
public bool $require_gallery_password = false;
|
|
|
|
public ?string $gallery_password_hash = null;
|
|
|
|
public ?DateTimeInterface $gallery_expires_at = null;
|
|
|
|
public ?int $gallery_access_duration_minutes = null;
|
|
|
|
public int $new_image_timespan_minutes = 60;
|
|
|
|
public int $image_refresh_interval = 30_000;
|
|
|
|
public int $max_number_of_copies = 3;
|
|
|
|
public bool $show_print_button = true;
|
|
|
|
public ?string $selected_printer = null;
|
|
|
|
public ?string $custom_printer_address = null;
|
|
|
|
public ?int $default_style_id = null;
|
|
|
|
public static function group(): string
|
|
{
|
|
return 'general';
|
|
}
|
|
}
|