Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[8.x] Add support for attaching existing model instances in factories (…
…#35494) * Add support for associating existing models using the 'for' factory method * Add support for 'hasAttached' * Fix support for BelongsTo with existing model * Fix support for BelongsToMany with existing model * Update docblock * Formatting * Formatting Co-authored-by: John T. Bonaccorsi <jtbonaccorsi@gmail.com>
- Loading branch information
1 parent
c721d5e
commit c9dcaa2
Showing
4 changed files
with
65 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters