GithubHelp home page GithubHelp logo

sollidsnake / laravel-cross-database-subqueries Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hoyvoy/laravel-cross-database-subqueries

0.0 1.0 0.0 364 KB

Eloquent cross database compatibility in subqueries

License: MIT License

PHP 9.10% CSS 0.43% JavaScript 0.34% HTML 90.13%

laravel-cross-database-subqueries's Introduction

Build Status Codacy Badge StyleCI

Laravel Cross database subqueries

Eloquent cross database compatibility in subqueries.

Laravel laravel-cross-database-subqueries Lifecycle
^5.5 ^5.5 January 24, 2017
Bug fixes until January 2019
Security fixes until June 2020
^5.6 ^5.6 February 7, 2018
6 months of bug fixes
1 year of security
^8.0 ^8.0 September 22, 2020

Why do I need it?

To use the following Eloquent methods cross databases:

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

Installation

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,

Usage

In your Models extends from:

  • Hoyvoy\CrossDatabase\Eloquent\Model

Supported PHP Versions

  • >=7.0

Supported Databases

  • MySQL
  • PostgreSQL
  • SQL Server

Issues & Contributing

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

laravel-cross-database-subqueries's People

Contributors

buglinjo avatar jasonlbeggs avatar jualoppaz avatar lasserafn avatar maguilar92 avatar newtongamajr avatar samuelhoyvoy avatar sollidsnake avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.