Add default sorting to CardPinOrdersTable by creation date
- Updated CardPinOrdersTable to default sort by 'created_at' in descending order for improved data visibility.
This commit is contained in:
@@ -20,6 +20,7 @@ class CardPinOrdersTable
|
|||||||
->modifyQueryUsing(function (Builder $query) {
|
->modifyQueryUsing(function (Builder $query) {
|
||||||
DefaultQueryForResourceIndexRepository::make($query);
|
DefaultQueryForResourceIndexRepository::make($query);
|
||||||
})
|
})
|
||||||
|
->defaultSort('created_at', 'desc')
|
||||||
->columns([
|
->columns([
|
||||||
TextColumn::make('id')
|
TextColumn::make('id')
|
||||||
->label('ID'),
|
->label('ID'),
|
||||||
|
|||||||
Reference in New Issue
Block a user