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 738b7ed commit 7fe135bCopy full SHA for 7fe135b
README.md
@@ -248,6 +248,17 @@ Schema::create('table', function (Blueprint $table) {
248
});
249
```
250
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
262
### Unique Keys
263
264
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