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
{{ message }}
This repository was archived by the owner on Dec 10, 2018. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+15-1Lines changed: 15 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,7 +50,6 @@ class TestModel extends Model
50
50
}
51
51
```
52
52
53
-
54
53
If don't like the primary key named `uuid` you can leave off the `HasUuidPrimaryKey` trait and manually specify `$primaryKey`. Don't forget set `$incrementing` to false.
55
54
56
55
```php
@@ -67,6 +66,21 @@ class TestModel extends Model
67
66
}
68
67
```
69
68
69
+
#### A note on the `uuid` blueprint method
70
+
71
+
Because we're currently not able to add new blueprint methods which can be used without overriding services,
72
+
we decided to override the `uuid` behaviour which will create a `BINARY` column instead of a `CHAR(36)` column.
73
+
74
+
There are some cases in which Laravel's generated code will also use `uuid`, but doesn't support our binary implementation.
75
+
An example are database notifications.
76
+
To make those work, you'll have to change the migration of those notifications to use `CHAR(36)`.
0 commit comments