MailEclipse :zap: Laravel Mail Editor
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,
],
Add development env to the allowed environments in the config by default as many using it instead of the local
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.
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),
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.
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),