- Bilder mit automatischen WebP-Webgrößen (640/1280/2048 px), Sortierung per Drag & Drop, Mehrfach-Upload, Import-Befehl photos:import - Webseiten-Texte als feste, bearbeitbare Bausteine (config/content.php), Rich-Text bereinigt ausgegeben - Ausstattung und FAQ aus der bisherigen Webseite übernommen - Rolle Inhalte hat Zugriff auf alle Webseiten-Bereiche Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
32 lines
936 B
PHP
32 lines
936 B
PHP
<?php
|
|
|
|
namespace App\Filament\Resources\Faqs\Schemas;
|
|
|
|
use Filament\Forms\Components\RichEditor;
|
|
use Filament\Forms\Components\TextInput;
|
|
use Filament\Forms\Components\Toggle;
|
|
use Filament\Schemas\Schema;
|
|
|
|
class FaqForm
|
|
{
|
|
public static function configure(Schema $schema): Schema
|
|
{
|
|
return $schema
|
|
->components([
|
|
TextInput::make('question')
|
|
->label('Frage')
|
|
->required()
|
|
->maxLength(255)
|
|
->columnSpanFull(),
|
|
RichEditor::make('answer')
|
|
->label('Antwort')
|
|
->toolbarButtons([['bold', 'italic', 'link'], ['bulletList', 'orderedList']])
|
|
->required()
|
|
->columnSpanFull(),
|
|
Toggle::make('is_published')
|
|
->label('Veröffentlicht')
|
|
->default(true),
|
|
]);
|
|
}
|
|
}
|