Skip to content

Commit 427c259

Browse files
committed
fix method naming in docs
1 parent 1341ce4 commit 427c259

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/source/mediable.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -256,12 +256,12 @@ Variants can also be eager loaded this way.
256256

257257
<?php
258258
// lazy eager load from a collection of Mediables
259-
$posts->loadMediaAndVariants($tags);
260-
$posts->loadMediaAndVariantsMatchAll($tags);
259+
$posts->loadMediaWithVariants($tags);
260+
$posts->loadMediaWithVariantsMatchAll($tags);
261261

262262
// lazy eager load from a single Mediable model
263-
$post->loadMediaAndVariants($tags);
264-
$post->loadMediaAndVariantsMatchAll($tags);
263+
$post->loadMediaWithVariants($tags);
264+
$post->loadMediaWithVariantsMatchAll($tags);
265265

266266
Automatic Rehydration
267267
----------------------

0 commit comments

Comments
 (0)