We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71d4e20 commit 61436abCopy full SHA for 61436ab
README.md
@@ -195,6 +195,20 @@ Schema::create('table', function (Blueprint $table) {
195
196
```
197
198
+Sort keys by default works for `asc` sort queries. If you would like to create a sort key with `desc` order, you can use the `sortKeyDesc` method.
199
+
200
+```php
201
+Schema::create('table', function (Blueprint $table) {
202
+ $table->string('name');
203
204
+ $table->sortKeyDesc('name');
205
+});
206
207
208
+ $table->string('name')->sortKeyDesc();
209
210
+```
211
212
### Series Timestamps
213
To denote a column as a series timestamp, use the `seriesTimestamp` column modifier.
214
0 commit comments