All notable changes to laravel-mail-editor
will be documented in this file.
- initial release
- fix error
Call to a member function sortBy() on null
that happens when mailables directory not created yet. - replace jquery
$.ajax
withaxios
library, also adding notie confirmation for save-template action. - fix javascript error
plaintextEditor is not defined
when save mailable view template. - other minor fixes.
- remove unwanted routes
- fix mailable with multiple constructor args type error (issue).
- Replace route closure with controller based route (issue).
- other minor fixes.
- look for the equivalent factory and check if the dependency is an eloquent model.
- resolve all other non-eloquent objects.
- markdown editor will output no object variables in the following format: {{ varname }}.
- fix template view path encoding for windows env.
- Add constructor auto detect for arrays.
- rollback db after generating a model factory.
- Fix error saving template error
Request failed with status code 500
.
- Enable source code editing plugin for WYSIWYG.
- Add
vendor:publish
for template production.
- Moving away templates metadata from DB to a JSON file to avoid production problems.
- Fixes issues #15, #16
- Adds the ability to have params mocked for a Mailable's constructor where a type isn't available
- Fixes issue where the tinyMCE editor would take the blade directive
{{ $user->name }}
and then render the thing as this in the.blade.php
file{{ $user->name }}
.
- Add ui anchor icon for each simple variable.
- Fix error that occured when updating template details: Error: Request failed with status code 500 #32.
- Add route groups.
- Add Legacy output plugin and inline_styles option to TinyMCE editor.
- Add web middleware
- Add advanced editor params.
- Optional factory usage configuration.
- Add with data to params list.
- Remove web middleware which disables markdown preview to render.
- Rename config middleware option to middlewares and add a simple middleware example.
- Save created templates to maileclipse vendor resources path.
- Fix editor view data anchor.
- Rename configuration option
mail_dir
tomailables_dir
.
- Fix markdown template preview error request 419.
- Fixed generation of test instance
- StyleCi integration
- Fix typo in error message
- Fix mailable deletion
- Supports Laravel 6
- Backwards compatibility
- Update footer minor version
- Fix constructor type hints
- Type hints in mailable constructor must be an object
- minor fixes
- Minor Bug fixes: #87 #86 #78
- Laravel 7 support
- Minor bug fixes
- fix bug #82 (Function ReflectionType::__toString() is deprecated)
- Fix Mailables deletion
- Read properties of the Mailable parent classes
- Laravel 8 Support
- Laravel legacy factories for L8 support see #107, #106
IMPORTANT: Version 2.2.0 will only support Laravel versions 5, 6 and 7 for future releases.
- Revert Laravel 8 support
- Console command for installing assets see PR #111, credit: @yogendra-revanna
Laravel 8 Support release
- PSR standards for console command class name, see #115, credit @ivebe
- Improve the sanitization of class names for mailables to align with PHP expectations. credit @ivebe
- Add the ability to send test mail with fake factory model data
- Fix model factories builder not loaded in laravel 8
- Formatting
- The package now has an install command
php artisan laravel-mail-editor:install
see #111
- Supports only Laravel v8
- See #108
- PSR Classnames #112, thank you @yogendra-revanna
The name spaces of the package now use PSR classname standards, if you were referencing them before in an application, please update them to reflect everything correctly.
This release will resolve the issue that has been brought up in issue #63 where relations weren't being loaded and affected the calling of relations inside emails or mailables.
- Fixes issue #63
- Discovery and loading of relations that have factories
- New config for depth of searching see below for new addition
new config value
/*
|--------------------------------------------------------------------------
| Relationship loading depth
|--------------------------------------------------------------------------
|
| This configures how deep the package will search an load relations.
| If you set this to 0, relations will not be loaded.
|
| off = 0, min = 1, max = 5
|
| N.B. This does not configure how many many relationship types are loaded.
*/
'relation_depth' => env('MAILECLIPSE_RELATION_DEPTH', 2),
- Add development env to the allowed environments in the config by default as many using it instead of the local
- Fixes issue where package would try to search for
string
type of a parameter and fail. #178
- The structure of the config file for the relations section. It will fallback to loading one by default.
New Structure:
+ /*
+ |--------------------------------------------------------------------------
+ | Relationship loading.
+ |--------------------------------------------------------------------------
+ |
+ | This configures how deep the package will search an load relations.
+ | If you set this to 0, relations will not be loaded.
+ |
+ | relation_depth: off = 0, min = 1, max = 5
+ | model: this is the model to use to exclude methods when searching.
+ |
+ | N.B. This does not configure how many many relationship types are loaded.
+ */
- 'relation_depth' => env('MAILECLIPSE_RELATION_DEPTH', 2),
+ 'relations' => [
+ 'relation_depth' => env('MAILECLIPSE_RELATION_DEPTH', 2),
+
+ 'model' => \Illuminate\Foundation\Auth\User::class,
+ ],
- Fixes #168
- Fixes an issue where in some cases Faker data would cause a issue for the javascript frontend. See #187 and #188
Laravel 9 Support
- Improve error messages for event when a factory is not found when the setting is on to use them
- Allow the subject to be displayed in the mailables table instead of Namespace values
- Syntax error on the mailables.blade.php file. #199, #200
- Laravel 9 mailables compatibility #218 and #219