Skip to content

Commit 7fe135b

Browse files
committed
Update README
1 parent 738b7ed commit 7fe135b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,17 @@ Schema::create('table', function (Blueprint $table) {
248248
});
249249
```
250250

251+
You may also define the sort key direction per-column using the following syntax:
252+
253+
```php
254+
Schema::create('table', function (Blueprint $table) {
255+
$table->string('f_name');
256+
$table->string('l_name');
257+
258+
$table->sortKey([['f_name', 'asc'], ['l_name', 'desc']]);
259+
});
260+
```
261+
251262
### Unique Keys
252263

253264
You can add an `unique key` to your tables using the standalone `unique` method, or fluently by appending `unique` to the column definition.

0 commit comments

Comments
 (0)