Files
fewo-stommer/app/Filament/Resources/Guests/RelationManagers/BookingsRelationManager.php
T
2026-10-27 21:51:56 +01:00

25 lines
599 B
PHP

<?php
namespace App\Filament\Resources\Guests\RelationManagers;
use App\Filament\Resources\Bookings\Tables\BookingsTable;
use Filament\Resources\RelationManagers\RelationManager;
use Filament\Tables\Table;
class BookingsRelationManager extends RelationManager
{
protected static string $relationship = 'bookings';
protected static ?string $title = 'Aufenthalte & Anfragen';
public function isReadOnly(): bool
{
return true;
}
public function table(Table $table): Table
{
return BookingsTable::configure($table, $this->getOwnerRecord()->id);
}
}