Skip to content

Commit

Permalink
Merge pull request #23 from threeel/main
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
ibrahimBougaoua authored Sep 25, 2024
2 parents a99f80b + 51f32b3 commit 6bd2f26
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,19 @@ php artisan vendor:publish --tag="filament-sort-order-config"

This is the contents of the published config file:

// You can incorporate additional tables by appending "table{number}" as an illustration.
// 'table1' =>'users',
// 'table2' =>'posts',
// 'table3' =>'products',
//And so on...

```php
return [
'table1' => 'users', // Specify the table to be affected.
// You can incorporate additional tables by appending "table{number}" as an illustration.
// 'table2' => 'posts',
// 'table3' => 'products',
// And so on...
'sort' => 'asc', // Default sorting order.

/** Add the tables to be migrated */
'tables' => [
'users',
],

/* The column name to be used for sorting */
'sort_column_name' => 'sort_column',

/* Sort Order asc or desc */
'sort' => 'asc',
];
```

Expand Down

0 comments on commit 6bd2f26

Please sign in to comment.