You've already forked Atomcms-edit
Initial commit
This commit is contained in:
+30
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Filament\Resources\User\Users\RelationManagers;
|
||||
|
||||
use App\Filament\Resources\Hotel\ChatlogRooms\ChatlogRoomResource;
|
||||
use Filament\Resources\RelationManagers\RelationManager;
|
||||
use Filament\Schemas\Schema;
|
||||
use Filament\Tables\Table;
|
||||
|
||||
class ChatLogRelationManager extends RelationManager
|
||||
{
|
||||
#[\Override]
|
||||
protected static string $relationship = 'chatLogs';
|
||||
|
||||
protected static $targetResource = ChatlogRoomResource::class;
|
||||
|
||||
#[\Override]
|
||||
public function form(Schema $schema): Schema
|
||||
{
|
||||
return $schema;
|
||||
}
|
||||
|
||||
public function table(Table $table): Table
|
||||
{
|
||||
return $table->columns(ChatlogRoomResource::getTable())
|
||||
->defaultSort('timestamp', 'desc');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user