You've already forked Epicnabbo-Catalogus-Updated-Daily
🆙 More fixes 🆙
This commit is contained in:
@@ -48,7 +48,8 @@ class ListUsers extends ListRecords
|
||||
->default(false),
|
||||
])
|
||||
->action(function (array $data): void {
|
||||
$allUsersId = collect($data['users'] ?? [])->values();
|
||||
$usersVal = $data['users'] ?? [];
|
||||
$allUsersId = collect(is_array($usersVal) ? $usersVal : [])->values();
|
||||
$senderId = !empty($data['as_staff']) ? null : auth()->id();
|
||||
|
||||
if ($allUsersId->isEmpty()) {
|
||||
|
||||
+1
-1
@@ -146,7 +146,7 @@ class SettingsRelationManager extends RelationManager
|
||||
|
||||
TextColumn::make('online_time')
|
||||
->label(__('filament::resources.columns.online_time'))
|
||||
->formatStateUsing(fn (string $state) => __(':m minutes', ['m' => round(CarbonInterval::seconds($state)->totalMinutes)]))
|
||||
->formatStateUsing(fn (string $state) => __(':m minutes', ['m' => round(CarbonInterval::seconds((int) $state)->totalMinutes)]))
|
||||
->toggleable(),
|
||||
|
||||
IconColumn::make('can_trade')
|
||||
|
||||
Reference in New Issue
Block a user