Skip to content

harryqt/laravel-cross-database-subqueries

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel Cross Database Subqueries

Why do I need it?

To use the following Eloquent methods cross databases:

  • has
  • whereHas
  • doesntHave
  • whereDoesntHave
  • withCount (except with prefixes)

Installation

On composer.json add the following:

"repositories": [
    {
        "type": "vcs",
        "url": "https://github.com/Dibbyo456/laravel-cross-database-subqueries"
    }
],
"require": {
    "hoyvoy/laravel-cross-database-subqueries": "dev-main"
},

Usage

In your Models extends from: Hoyvoy\CrossDatabase\Eloquent\Model

Supported PHP Versions

  • >=8.1

Supported Databases

  • MySQL
  • MariaDB
  • PostgreSQL
  • SQL Server

Issues & Contributing

If you find an issue please report it or contribute by submitting a pull request.

About

Eloquent cross database compatibility in subqueries

Resources

License

Stars

Watchers

Forks

Languages

  • HTML 89.9%
  • PHP 9.4%
  • Other 0.7%