You've already forked Epicnabbo-Catalogus-Updated-Daily
🆙 More fixes 🆙
This commit is contained in:
+1
-1
@@ -11,7 +11,7 @@ class ChatLogPrivateRelationManager extends RelationManager
|
|||||||
{
|
{
|
||||||
protected static string $relationship = 'chatLogsPrivate';
|
protected static string $relationship = 'chatLogsPrivate';
|
||||||
|
|
||||||
protected static $targetResource = ChatlogPrivateResource::class;
|
protected static string $targetResource = ChatlogPrivateResource::class;
|
||||||
|
|
||||||
public function form(Schema $schema): Schema
|
public function form(Schema $schema): Schema
|
||||||
{
|
{
|
||||||
|
|||||||
+1
-1
@@ -11,7 +11,7 @@ class ChatLogRelationManager extends RelationManager
|
|||||||
{
|
{
|
||||||
protected static string $relationship = 'chatLogs';
|
protected static string $relationship = 'chatLogs';
|
||||||
|
|
||||||
protected static $targetResource = ChatlogRoomResource::class;
|
protected static string $targetResource = ChatlogRoomResource::class;
|
||||||
|
|
||||||
public function form(Schema $schema): Schema
|
public function form(Schema $schema): Schema
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -80,21 +80,21 @@ class UserResource extends Resource
|
|||||||
DateTimePicker::make('account_created')
|
DateTimePicker::make('account_created')
|
||||||
->native(false)
|
->native(false)
|
||||||
->displayFormat('Y-m-d H:i:s')
|
->displayFormat('Y-m-d H:i:s')
|
||||||
->dehydrateStateUsing(fn (Model $record) => $record->account_created)
|
->dehydrateStateUsing(fn (User $record) => $record->account_created)
|
||||||
->disabled()
|
->disabled()
|
||||||
->label(__('filament::resources.inputs.created_at')),
|
->label(__('filament::resources.inputs.created_at')),
|
||||||
|
|
||||||
DateTimePicker::make('last_login')
|
DateTimePicker::make('last_login')
|
||||||
->native(false)
|
->native(false)
|
||||||
->displayFormat('Y-m-d H:i:s')
|
->displayFormat('Y-m-d H:i:s')
|
||||||
->dehydrateStateUsing(fn (Model $record) => $record->last_login)
|
->dehydrateStateUsing(fn (User $record) => $record->last_login)
|
||||||
->disabled()
|
->disabled()
|
||||||
->label(__('filament::resources.inputs.last_login')),
|
->label(__('filament::resources.inputs.last_login')),
|
||||||
|
|
||||||
DateTimePicker::make('last_online')
|
DateTimePicker::make('last_online')
|
||||||
->native(false)
|
->native(false)
|
||||||
->displayFormat('Y-m-d H:i:s')
|
->displayFormat('Y-m-d H:i:s')
|
||||||
->dehydrateStateUsing(fn (Model $record) => $record->last_online)
|
->dehydrateStateUsing(fn (User $record) => $record->last_online)
|
||||||
->disabled()
|
->disabled()
|
||||||
->label(__('filament::resources.inputs.last_online')),
|
->label(__('filament::resources.inputs.last_online')),
|
||||||
|
|
||||||
@@ -118,7 +118,7 @@ class UserResource extends Resource
|
|||||||
Select::make('team_id')
|
Select::make('team_id')
|
||||||
->native(false)
|
->native(false)
|
||||||
->label(__('filament::resources.inputs.team_id'))
|
->label(__('filament::resources.inputs.team_id'))
|
||||||
->options(WebsiteTeam::all()->pluck('rank_name', 'id'))
|
->options(WebsiteTeam::query()->pluck('rank_name', 'id')->all())
|
||||||
->columnSpanFull(),
|
->columnSpanFull(),
|
||||||
])->columns(['sm' => 2]),
|
])->columns(['sm' => 2]),
|
||||||
|
|
||||||
@@ -172,7 +172,7 @@ class UserResource extends Resource
|
|||||||
->schema([
|
->schema([
|
||||||
TextInput::make('password')
|
TextInput::make('password')
|
||||||
->label(__('filament::resources.inputs.new_password'))
|
->label(__('filament::resources.inputs.new_password'))
|
||||||
->dehydrateStateUsing(fn ($state) => Hash::make($state))
|
->dehydrateStateUsing(fn ($state) => Hash::make((string) $state))
|
||||||
->dehydrated(fn ($state) => filled($state))
|
->dehydrated(fn ($state) => filled($state))
|
||||||
->password()
|
->password()
|
||||||
->confirmed(),
|
->confirmed(),
|
||||||
@@ -241,7 +241,7 @@ class UserResource extends Resource
|
|||||||
|
|
||||||
IconColumn::make('online')
|
IconColumn::make('online')
|
||||||
->label(__('filament::resources.columns.online'))
|
->label(__('filament::resources.columns.online'))
|
||||||
->icon(fn (Model $record) => $record->online ? 'heroicon-o-check-circle' : 'heroicon-o-x-circle')
|
->icon(fn (User $record) => $record->online ? 'heroicon-o-check-circle' : 'heroicon-o-x-circle')
|
||||||
->colors([
|
->colors([
|
||||||
'danger' => false,
|
'danger' => false,
|
||||||
'success' => true,
|
'success' => true,
|
||||||
@@ -273,14 +273,14 @@ class UserResource extends Resource
|
|||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function fillWithOutsideData(Model $record, array $formData): array
|
public static function fillWithOutsideData(User $record, array $formData): array
|
||||||
{
|
{
|
||||||
$formData['currency_0'] = $record->currency('duckets');
|
$formData['currency_0'] = $record->currency('duckets');
|
||||||
$formData['currency_5'] = $record->currency('diamonds');
|
$formData['currency_5'] = $record->currency('diamonds');
|
||||||
$formData['currency_101'] = $record->currency('points');
|
$formData['currency_101'] = $record->currency('points');
|
||||||
|
|
||||||
if ($record->settings) {
|
if ($record->settings && is_object($record->settings)) {
|
||||||
$formData['allow_change_username'] = $record->settings->can_change_name;
|
$formData['allow_change_username'] = (bool) data_get($record->settings, 'can_change_name', false);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $formData;
|
return $formData;
|
||||||
|
|||||||
@@ -72,3 +72,4 @@
|
|||||||
[2026-01-19 22:24:30] production.ERROR: RCON connection failed: Kan geen verbinding maken omdat de doelcomputer de verbinding actief heeft geweigerd
|
[2026-01-19 22:24:30] production.ERROR: RCON connection failed: Kan geen verbinding maken omdat de doelcomputer de verbinding actief heeft geweigerd
|
||||||
[2026-01-19 22:24:30] production.ERROR: RCON connection failed: Kan geen verbinding maken omdat de doelcomputer de verbinding actief heeft geweigerd
|
[2026-01-19 22:24:30] production.ERROR: RCON connection failed: Kan geen verbinding maken omdat de doelcomputer de verbinding actief heeft geweigerd
|
||||||
[2026-01-19 22:25:56] production.ERROR: RCON connection failed: Kan geen verbinding maken omdat de doelcomputer de verbinding actief heeft geweigerd
|
[2026-01-19 22:25:56] production.ERROR: RCON connection failed: Kan geen verbinding maken omdat de doelcomputer de verbinding actief heeft geweigerd
|
||||||
|
[2026-01-19 22:29:19] production.ERROR: RCON connection failed: Kan geen verbinding maken omdat de doelcomputer de verbinding actief heeft geweigerd
|
||||||
|
|||||||
Reference in New Issue
Block a user