Skip to content

Commit

Permalink
seed box record search by id
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaomlove committed Nov 23, 2024
1 parent e24b237 commit 426e9e6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
10 changes: 10 additions & 0 deletions app/Filament/Resources/System/SeedBoxRecordResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
4 changes: 2 additions & 2 deletions include/constants.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
defined('VERSION_NUMBER') || define('VERSION_NUMBER', '1.8.14');
defined('RELEASE_DATE') || define('RELEASE_DATE', '2024-11-22');
defined('VERSION_NUMBER') || define('VERSION_NUMBER', '1.8.15');
defined('RELEASE_DATE') || define('RELEASE_DATE', '2024-11-23');
defined('IN_TRACKER') || define('IN_TRACKER', false);
defined('PROJECTNAME') || define("PROJECTNAME","NexusPHP");
defined('NEXUSPHPURL') || define("NEXUSPHPURL","https://nexusphp.org");
Expand Down

0 comments on commit 426e9e6

Please sign in to comment.