File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ ModelFields::model(Post::class)
142
142
$withDefaults = false,
143
143
$withPrimaryKey = false
144
144
);
145
-
145
+
146
146
// or
147
147
ModelFields::model(Post::class)->getRequiredFields();
148
148
// returns ['user_id', 'ulid', 'title', 'description']
@@ -156,11 +156,13 @@ ModelFields::model(Post::class)
156
156
$withDefaults = false,
157
157
$withPrimaryKey = false
158
158
);
159
+
159
160
// or
160
161
ModelFields::model(Post::class)
161
162
->getRequiredFields(
162
163
$withNullables = true
163
164
);
165
+
164
166
// or
165
167
ModelFields::model(Post::class)
166
168
->getRequiredFields(true);
@@ -183,7 +185,7 @@ ModelFields::model(Post::class)
183
185
$withDefaults = true,
184
186
$withPrimaryKey = false
185
187
);
186
-
188
+
187
189
// or
188
190
ModelFields::model(Post::class)
189
191
->getRequiredFieldsWithDefaults();
@@ -213,7 +215,7 @@ ModelFields::model(Post::class)
213
215
$withDefaults = true,
214
216
$withPrimaryKey = false
215
217
);
216
-
218
+
217
219
// or
218
220
ModelFields::model(Post::class)
219
221
->getRequiredFieldsWithNullablesAndDefaults();
@@ -251,7 +253,7 @@ ModelFields::model(Post::class)
251
253
$withDefaults = true,
252
254
$withPrimaryKey = true
253
255
);
254
-
256
+
255
257
// or
256
258
ModelFields::model(Post::class)
257
259
->getRequiredFieldsWithDefaultsAndPrimaryKey();
You can’t perform that action at this time.
0 commit comments