refactoring into clusters
This commit is contained in:
1 parent
042a5a8b58
commit
48deb69379
97 files changed
+186
-198
No files matched your search
@@ -0,0 +1,48 @@
|
||||
<?php
|
||||
|
||||
namespace App\Filament\Clusters\Newsletter\MailVersands;
|
||||
|
||||
use App\Filament\Clusters\Newsletter\MailVersands\Pages\ListMailVersands;
|
||||
use App\Filament\Clusters\Newsletter\MailVersands\Schemas\MailVersandForm;
|
||||
use App\Filament\Clusters\Newsletter\MailVersands\Tables\MailVersandsTable;
|
||||
use App\Filament\Clusters\Newsletter\NewsletterCluster;
|
||||
use App\Models\MailVersand;
|
||||
use BackedEnum;
|
||||
use Filament\Resources\Resource;
|
||||
use Filament\Schemas\Schema;
|
||||
use Filament\Support\Icons\Heroicon;
|
||||
use Filament\Tables\Table;
|
||||
|
||||
class MailVersandResource extends Resource
|
||||
{
|
||||
protected static ?string $model = MailVersand::class;
|
||||
|
||||
protected static ?int $navigationSort = 4;
|
||||
|
||||
protected static ?string $cluster = NewsletterCluster::class;
|
||||
|
||||
protected static string|BackedEnum|null $navigationIcon = Heroicon::OutlinedPaperAirplane;
|
||||
|
||||
protected static ?string $navigationLabel = 'Mail Versand';
|
||||
|
||||
protected static ?string $modelLabel = 'Mail Versand';
|
||||
|
||||
protected static ?string $pluralModelLabel = 'Mail Versand';
|
||||
|
||||
public static function form(Schema $schema): Schema
|
||||
{
|
||||
return MailVersandForm::configure($schema);
|
||||
}
|
||||
|
||||
public static function table(Table $table): Table
|
||||
{
|
||||
return MailVersandsTable::configure($table);
|
||||
}
|
||||
|
||||
public static function getPages(): array
|
||||
{
|
||||
return [
|
||||
'index' => ListMailVersands::route('/'),
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user