From 379deab548dab5de09c8090d9db7555be0e2720e Mon Sep 17 00:00:00 2001 From: guidocella Date: Thu, 2 Feb 2017 11:08:54 +0100 Subject: [PATCH] Tweak readme --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 66471ee..94df6f4 100644 --- a/readme.md +++ b/readme.md @@ -363,7 +363,7 @@ Or even: $comment = populator(Post::class)->make(Comment::class); ``` -Notice how even if `make` and `create` are chained from `add` or the helper with a class passed, if the first argument is a string, Populator interprets it as a different model class to create rather than the one that was just added, and redirects the call to the `EloquentPopulator\Populator` versions of these methods. This way you can easily populate Morph To and Belongs To Many relations in one line. +Notice how even if `make` and `create` are chained from `add` or the helper with a class passed, if the first argument is a string, Populator interprets it as a different model class to create rather than the one that was just added, and redirects the call to the `EloquentPopulator\Populator` versions of these methods. This way you can easily populate Morph To and Belongs To Many relations in one line, or specify custom attributes of a parent model before creating its child. #### Belongs To Many