Eloquent cross database compatibility in subqueries.
Laravel | laravel5-soft-cascade | Lifecycle |
---|---|---|
^5.5 | ^5.5 | ^1.8 |
| Bug fixes until January 2019 |
| Security fixes until June 2020 |
| ^5.6 | ^5.6 | ^1.8 | February 7, 2018 | | 6 months of bug fixes | | 1 year of security |
- has
- whereHas
- doesntHave
- whereDoesntHave
- withCount (except using prefixes)
Install with composer
composer require hoyvoy/laravel-cross-database-subqueries
From Laravel 5.5 onwards, it's possible to take advantage of auto-discovery of the service provider. For Laravel versions before 5.5, you must register the service provider in your config/app.php
Hoyvoy\CrossDatabase\CrossDatabaseServiceProvider::class,
In your Models
extends from:
- Hoyvoy\CrossDatabase\Eloquent\Model
- >=7.0
- MySQL
- PostgreSQL
- SQL Server
If you find an issue please report it or contribute by submitting a pull request.