You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add hasOne relation so, for each instance created it also creates any of the hasOne relations, automatically associating them to the instance.
For example, the UserBuilder could have the account method so you can specify if you want to create the user with an account and also specify which account to use, but it the account must always be created, then you shouldn't be required to call the account method any time, so just by specifying protected $hasOne = [Account::class] it automatically should create it.
The text was updated successfully, but these errors were encountered:
Add hasOne relation so, for each instance created it also creates any of the hasOne relations, automatically associating them to the instance.
For example, the UserBuilder could have the account method so you can specify if you want to create the user with an account and also specify which account to use, but it the account must always be created, then you shouldn't be required to call the account method any time, so just by specifying
protected $hasOne = [Account::class]
it automatically should create it.The text was updated successfully, but these errors were encountered: