Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

Commit

Permalink
Fixed generation of test instance
Browse files Browse the repository at this point in the history
  • Loading branch information
Qoraiche committed Jun 10, 2019
1 parent 7905a34 commit 2259ffd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mailEclipse.php
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ public static function handleMailableViewDataArgs($mailable)
if (is_array($arg)) {
if (isset($arg['is_instance'])) {
if (isset($eloquentFactory[$arg['instance']]) && config('maileclipse.factory')) {
$filteredparams[] = factory($arg['instance'])->states($factoryStates)->create();
$filteredparams[] = factory($arg['instance'])->states($factoryStates)->make();
} else {
$filteredparams[] = app($arg['instance']);
}
Expand Down

0 comments on commit 2259ffd

Please sign in to comment.