- 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>
58 lines
1.4 KiB
PHP
58 lines
1.4 KiB
PHP
<?php
|
|
|
|
namespace App\Filament\Resources\Faqs;
|
|
|
|
use App\Filament\Resources\Faqs\Pages\CreateFaq;
|
|
use App\Filament\Resources\Faqs\Pages\EditFaq;
|
|
use App\Filament\Resources\Faqs\Pages\ListFaqs;
|
|
use App\Filament\Resources\Faqs\Schemas\FaqForm;
|
|
use App\Filament\Resources\Faqs\Tables\FaqsTable;
|
|
use App\Models\Faq;
|
|
use BackedEnum;
|
|
use Filament\Resources\Resource;
|
|
use Filament\Schemas\Schema;
|
|
use Filament\Support\Icons\Heroicon;
|
|
use Filament\Tables\Table;
|
|
use UnitEnum;
|
|
|
|
class FaqResource extends Resource
|
|
{
|
|
protected static ?string $model = Faq::class;
|
|
|
|
protected static string|BackedEnum|null $navigationIcon = Heroicon::OutlinedQuestionMarkCircle;
|
|
|
|
protected static string|UnitEnum|null $navigationGroup = 'Webseite';
|
|
|
|
protected static ?string $modelLabel = 'Frage';
|
|
|
|
protected static ?string $pluralModelLabel = 'Häufige Fragen';
|
|
|
|
protected static ?int $navigationSort = 4;
|
|
|
|
public static function form(Schema $schema): Schema
|
|
{
|
|
return FaqForm::configure($schema);
|
|
}
|
|
|
|
public static function table(Table $table): Table
|
|
{
|
|
return FaqsTable::configure($table);
|
|
}
|
|
|
|
public static function getRelations(): array
|
|
{
|
|
return [
|
|
//
|
|
];
|
|
}
|
|
|
|
public static function getPages(): array
|
|
{
|
|
return [
|
|
'index' => ListFaqs::route('/'),
|
|
'create' => CreateFaq::route('/create'),
|
|
'edit' => EditFaq::route('/{record}/edit'),
|
|
];
|
|
}
|
|
}
|