Skip to content

Commit 570ba80

Browse files
committed
5.6
1 parent 3b69716 commit 570ba80

2 files changed

Lines changed: 12 additions & 9 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,12 @@ This release is compatible with Laravel 11, 12 & 13
1717
- Dropped Laravel 10 support (EOL)
1818
- `pdphilip/omniterm` bumped to `^3.0`
1919
- `Connection::select()` signature updated with `$fetchUsing` parameter (Laravel 13 compatibility)
20-
- Laravel compatibility layer dispatchers use `>= 12` (L13 shares L12's connection/schema patterns)
21-
- Version gate updated: `Helpers::getLaravelCompatabilityVersion()` now accepts 11, 12, 13
2220
- CI matrix updated: PHP 8.3/8.4, Laravel 11/12/13
2321

22+
### Refactored
23+
24+
- Collapsed Laravel version compatibility layer from 12 files (4 dispatchers + 4 v11 traits + 4 v12 traits) into 4 self-contained traits. Version checks now happen inside each method with spread operators for different constructor signatures — no more file-level conditional trait loading. Removed phpstan bootstrap `class_alias` hacks that were needed for the old pattern.
25+
2426
**Full Changelog**: https://github.com/pdphilip/laravel-elasticsearch/compare/v5.5.3...v5.6.0
2527

2628
## v5.5.3 - 2026-03-20

README.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -87,18 +87,19 @@ UserLog::where('status', 1)->orderByDesc('created_at')->with('user')->get();
8787

8888
### Maintained versions (Elasticsearch 8.x):
8989

90-
**Laravel 10.x, 11.x & 12.x (main):**
90+
**Laravel 11.x, 12.x & 13.x (main):**
9191

9292
```bash
9393
composer require pdphilip/elasticsearch
9494
```
9595

96-
| Laravel Version | Command | Maintained |
97-
|--------------------|------------------------------------------------|------------|
98-
| Laravel 10/11/12 | `composer require pdphilip/elasticsearch:~5 ` | ✅ Active |
99-
| Laravel 10/11 (v4) | `composer require pdphilip/elasticsearch:~4` | 🛠️ LTS |
100-
| Laravel 9 | `composer require pdphilip/elasticsearch:~3.9` | 🛠️ LTS |
101-
| Laravel 8 | `composer require pdphilip/elasticsearch:~3.8` | 🛠️ LTS |
96+
| Laravel Version | Command | Maintained |
97+
|--------------------|--------------------------------------------------|------------|
98+
| Laravel 11/12/13 | `composer require pdphilip/elasticsearch:~5.6` | ✅ Active |
99+
| Laravel 10/11/12 | `composer require pdphilip/elasticsearch:~5.5` | 🛠️ LTS |
100+
| Laravel 10/11 (v4) | `composer require pdphilip/elasticsearch:~4` | 🛠️ LTS |
101+
| Laravel 9 | `composer require pdphilip/elasticsearch:~3.9` | 🛠️ LTS |
102+
| Laravel 8 | `composer require pdphilip/elasticsearch:~3.8` | 🛠️ LTS |
102103

103104
### Unmaintained versions (Elasticsearch 8.x):
104105

0 commit comments

Comments
 (0)