This repository has been archived by the owner on Jun 3, 2024. It is now read-only.
Releases: Qoraiche/laravel-mail-editor
Releases · Qoraiche/laravel-mail-editor
v3.5.0
Version 3.5.0
Changes
- The structure of the config file for the relations section. It will fallback to loading one by default. This is a change that is accounted for and defaults if it uses the old config structure. It is recommended that you update to the new one for this entry in the configuration file.
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,
+ ],
Use this to copy to the new file:
/*
|--------------------------------------------------------------------------
| 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.
*/
'relations' => [
'relation_depth' => env('MAILECLIPSE_RELATION_DEPTH', 2),
'model' => \Illuminate\Foundation\Auth\User::class,
],
Fixes
- Fixes #168
v3.4.2
v3.4.1
v3.4.0
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
- Fixes issue #63
Addition
- 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),
v2.3.0
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
- Fixes issue #63
Addition
- 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),