You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14Lines changed: 14 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -219,6 +219,20 @@ Schema::create('test', function (Blueprint $table) {
219
219
});
220
220
```
221
221
222
+
### Increment Columns without Primary Key
223
+
224
+
Sometimes you may want to set a custom primary key. However if your table has an int `increment` column,
225
+
Laravel, by default, always sets this column as the primary key. Even if you manually set another one. This behavior can be disabled using the `withoutPrimaryKey` method.
226
+
227
+
```php
228
+
Schema::create('test', function (Blueprint $table) {
0 commit comments