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
-`$model->getUuidField()` — returns configured column name
36
81
37
-
## Upgrade from 1.x/2.x version of `kduma/eloquent-guidable`
82
+
> **Note:** This package adds UUID as an *additional column* alongside the numeric `id`, unlike Laravel's built-in `HasUuids` which replaces the primary key.
38
83
39
-
Add following line to yours models to switch from using `uuid` column name to `guid` as it was used in previous versions:
84
+
## Upgrade from `kduma/eloquent-guidable` (1.x / 2.x)
40
85
41
-
protected $uuid_field = 'guid';
86
+
Use `#[HasUuid(field: 'guid')]` to keep the old column name.
0 commit comments