This repository has been archived by the owner on Jun 3, 2024. It is now read-only.
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