Skip to content

Commit 8ac5371

Browse files
update readme with the facade method docs
1 parent 8ff72e5 commit 8ac5371

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ ModelFields::model(Post::class)
142142
$withDefaults = false,
143143
$withPrimaryKey = false
144144
);
145-
145+
146146
// or
147147
ModelFields::model(Post::class)->getRequiredFields();
148148
// returns ['user_id', 'ulid', 'title', 'description']
@@ -156,11 +156,13 @@ ModelFields::model(Post::class)
156156
$withDefaults = false,
157157
$withPrimaryKey = false
158158
);
159+
159160
// or
160161
ModelFields::model(Post::class)
161162
->getRequiredFields(
162163
$withNullables = true
163164
);
165+
164166
// or
165167
ModelFields::model(Post::class)
166168
->getRequiredFields(true);
@@ -183,7 +185,7 @@ ModelFields::model(Post::class)
183185
$withDefaults = true,
184186
$withPrimaryKey = false
185187
);
186-
188+
187189
// or
188190
ModelFields::model(Post::class)
189191
->getRequiredFieldsWithDefaults();
@@ -213,7 +215,7 @@ ModelFields::model(Post::class)
213215
$withDefaults = true,
214216
$withPrimaryKey = false
215217
);
216-
218+
217219
// or
218220
ModelFields::model(Post::class)
219221
->getRequiredFieldsWithNullablesAndDefaults();
@@ -251,7 +253,7 @@ ModelFields::model(Post::class)
251253
$withDefaults = true,
252254
$withPrimaryKey = true
253255
);
254-
256+
255257
// or
256258
ModelFields::model(Post::class)
257259
->getRequiredFieldsWithDefaultsAndPrimaryKey();

0 commit comments

Comments
 (0)