Die Schaltfläche hieß nur "Erstellen" (Filaments Vorgabe) und war als Einstieg nicht erkennbar. Dazu ein Test, der den ganzen Weg geht: Liste, Formular, Anlegen samt Dienste-Freischaltung – und prüft, dass ein neuer Mandant nichts von dem Mandanten erbt, den der Betreiber gerade ansieht. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
23 lines
539 B
PHP
23 lines
539 B
PHP
<?php
|
|
|
|
namespace App\Filament\Operator\Tenants\Pages;
|
|
|
|
use App\Filament\Operator\TenantResource;
|
|
use Filament\Actions\CreateAction;
|
|
use Filament\Resources\Pages\ListRecords;
|
|
use Filament\Support\Icons\Heroicon;
|
|
|
|
class ListTenants extends ListRecords
|
|
{
|
|
protected static string $resource = TenantResource::class;
|
|
|
|
protected function getHeaderActions(): array
|
|
{
|
|
return [
|
|
CreateAction::make()
|
|
->label('Neuen Mandanten anlegen')
|
|
->icon(Heroicon::OutlinedPlus),
|
|
];
|
|
}
|
|
}
|