diff --git a/.gitignore b/.gitignore index 50dc90d..ebe3431 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -/node_modules/* +node_modules/* .DS_Store /vendor /composer.lock @@ -10,3 +10,5 @@ resources/views/draft/* # exception to the rule !resources/views/draft/.gitkeep !resources/views/templates/.gitkeep + +docs/node_modules diff --git a/changelog.md b/changelog.md index 71afdcc..2a27402 100644 --- a/changelog.md +++ b/changelog.md @@ -265,3 +265,9 @@ New Structure: ### Fixes - Fixes an issue where in some cases Faker data would cause a issue for the javascript frontend. See #187 and #188 + +## Version 4.0.0 + +### Changed + +Laravel 9 Support diff --git a/src/MailEclipse.php b/src/MailEclipse.php index 0a906ae..9c0ccd1 100644 --- a/src/MailEclipse.php +++ b/src/MailEclipse.php @@ -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. @@ -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"); } /**