diff --git a/app/Filament/Resources/System/SeedBoxRecordResource.php b/app/Filament/Resources/System/SeedBoxRecordResource.php index 54c02b8d..8709544c 100644 --- a/app/Filament/Resources/System/SeedBoxRecordResource.php +++ b/app/Filament/Resources/System/SeedBoxRecordResource.php @@ -100,6 +100,16 @@ public static function table(Table $table): Table ->label(__('label.seed_box_record.status')), ]) ->filters([ + Tables\Filters\Filter::make('id') + ->form([ + Forms\Components\TextInput::make('id') + ->label('ID') + ->placeholder('ID') + , + ])->query(function (Builder $query, array $data) { + return $query->when($data['id'], fn (Builder $query, $id) => $query->where("id", $id)); + }) + , Tables\Filters\Filter::make('uid') ->form([ Forms\Components\TextInput::make('uid') diff --git a/include/constants.php b/include/constants.php index db8121eb..ab2143d7 100644 --- a/include/constants.php +++ b/include/constants.php @@ -1,6 +1,6 @@