Skip to content

v2.0.0

Compare
Choose a tag to compare
@pdphilip pdphilip released this 21 Oct 23:30
· 45 commits to main since this release

Version 2 introduces breaking changes to support multiple model namespace mappings, providing flexibility for domain-driven architecture. This update allows the use of multiple model sources.

The elasticlens.php config file now requires the following structure:

'namespaces' => [
    'App\Models' => 'App\Models\Indexes',
],

'index_paths' => [
    'app/Models/Indexes/' => 'App\Models\Indexes',
],

• The namespaces key maps models to their respective index namespaces.
• The index_paths key maps file paths to the corresponding index namespaces.

Full Changelog: v1.3.1...v2.0.0