Skip to content

v2.3.0

Compare
Choose a tag to compare
@ReeceM ReeceM released this 16 Jul 21:04
181fddd

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),