-
-
Notifications
You must be signed in to change notification settings - Fork 108
Expand file tree
/
Copy pathUserRelationManager.php
More file actions
35 lines (24 loc) · 879 Bytes
/
UserRelationManager.php
File metadata and controls
35 lines (24 loc) · 879 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
namespace App\Filament\Resources\LicenseResource\RelationManagers;
use App\Filament\Resources\UserResource;
use Filament\Resources\RelationManagers\RelationManager;
use Filament\Schemas\Schema;
use Filament\Tables\Table;
class UserRelationManager extends RelationManager
{
protected static string $relationship = 'user';
protected static ?string $recordTitleAttribute = 'email';
protected static bool $hasAssociateAction = false;
protected static bool $hasDissociateAction = false;
protected static bool $hasCreateAction = false;
protected static bool $hasDeleteAction = false;
protected static bool $hasEditAction = false;
public function form(Schema $schema): Schema
{
return UserResource::form($schema);
}
public function table(Table $table): Table
{
return UserResource::table($table);
}
}