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
**If you are USING UUIDs**, see the [Custom Model Support](#custom-model-support) section of the docs on UUID steps, before you continue. It explains some changes you may want to make to the migrations and config file before continuing. It also mentions important considerations after extending this package's models for UUID capability.
50
+
51
+
If so, run the migration command:
52
+
53
+
```bash
38
54
php artisan migrate
39
55
```
40
56
57
+
### Note for Apps Using UUIDs/ULIDs/GUIDs
58
+
59
+
This package expects the primary key of your models to be an auto-incrementing int. If it is not, you may need to modify the `create_schedules_table` and `create_schedule_periods_table` migration and/or modify the default configuration. See [Custom Model Support](#custom-model-support) for more information.
60
+
41
61
### Setup Your Models
42
62
43
63
Add the `HasSchedules` trait to any Eloquent model you want to make schedulable:
@@ -51,14 +71,6 @@ class Doctor extends Model
51
71
}
52
72
```
53
73
54
-
### Note for Apps Using UUIDs/ULIDs/GUIDs
55
-
56
-
This package expects the primary key of your models to be an auto-incrementing int. If it is not, you may need to modify the `create_schedules_table` and `create_schedule_periods_table` migration and/or modify the default configuration. See [Custom Model Support](#custom-model-support) for more information.
57
-
58
-
### Before Running Migrations
59
-
60
-
**If you are USING UUIDs**, see the [Custom Model Support](#custom-model-support) section of the docs on UUID steps, before you continue. It explains some changes you may want to make to the migrations and config file before continuing. It also mentions important considerations after extending this package's models for UUID capability.
0 commit comments