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

Commit

Permalink
fix old error of issue #1 for factories
Browse files Browse the repository at this point in the history
  • Loading branch information
ReeceM committed Feb 9, 2022
1 parent 573ecdb commit 082d384
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/MailEclipse.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class MailEclipse
{
public const VIEW_NAMESPACE = 'maileclipse';

public const VERSION = '3.5.0';
public const VERSION = '4.0.1';

/**
* Default type examples for being passed to reflected classes.
Expand Down Expand Up @@ -934,7 +934,9 @@ private static function resolveFactory($eloquentFactory, $model): ?object
return $model::factory()->make();
}

return null;
$action = sprintf('php artisan make:factory %sFactory --model=%s', Str::of($model)->afterLast("\\"), $model);

throw new \Exception("No Factory found, maileclipse.factory config is true. But there is no Factory. Create using $action");
}

/**
Expand Down

0 comments on commit 082d384

Please sign in to comment.