Skip to content

Commit fdb8b0f

Browse files
committed
update readme
1 parent b0bacb3 commit fdb8b0f

File tree

1 file changed

+19
-29
lines changed

1 file changed

+19
-29
lines changed

Diff for: README.md

+19-29
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,38 @@
1-
[![Build Status](https://travis-ci.org/hoyvoy/laravel-cross-database-subqueries.svg?branch=master)](https://travis-ci.org/hoyvoy/laravel-cross-database-subqueries) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/5ef152edf13d4440a9ccacf942bbecf9)](https://www.codacy.com/app/mario-hoyvoy/laravel-cross-database-subqueries?utm_source=github.com&utm_medium=referral&utm_content=hoyvoy/laravel-cross-database-subqueries&utm_campaign=Badge_Grade) [![StyleCI](https://styleci.io/repos/120466504/shield?branch=master)](https://styleci.io/repos/120466504)
2-
3-
# Laravel Cross database subqueries
4-
Eloquent cross database compatibility in subqueries.
5-
6-
| **Laravel** | **laravel-cross-database-subqueries** | **Lifecycle** |
7-
|---|---|---|
8-
| ^5.5 | ^5.5 | January 24, 2017 |
9-
||| Bug fixes until January 2019 |
10-
||| Security fixes until June 2020 |
11-
| ^5.6 | ^5.6 | February 7, 2018 |
12-
||| 6 months of bug fixes |
13-
||| 1 year of security |
14-
| ^8.0 | ^8.0 | September 22, 2020 |
15-
16-
# Why do I need it?
1+
# Laravel Cross Database Subqueries
2+
3+
## Why do I need it?
174
### To use the following Eloquent methods cross databases:
185
* has
196
* whereHas
207
* doesntHave
218
* whereDoesntHave
229
* withCount (except with prefixes)
2310

24-
# Installation
25-
Install with composer
26-
~~~
27-
composer require hoyvoy/laravel-cross-database-subqueries
28-
~~~
11+
## Installation
2912

30-
From Laravel 5.5 onwards, it's possible to take advantage of auto-discovery of the service provider.
31-
For Laravel versions before 5.5, you must register the service provider in your config/app.php
13+
On `composer.json` add the following:
3214

33-
~~~
34-
Hoyvoy\CrossDatabase\CrossDatabaseServiceProvider::class,
35-
~~~
15+
```json
16+
"repositories": [
17+
{
18+
"type": "vcs",
19+
"url": "https://github.com/Dibbyo456/laravel-cross-database-subqueries"
20+
}
21+
],
22+
"require": {
23+
"hoyvoy/laravel-cross-database-subqueries": "dev-main"
24+
},
25+
```
3626

3727
# Usage
38-
In your `Models` extends from:
39-
* Hoyvoy\CrossDatabase\Eloquent\Model
28+
In your `Models` extends from: `Hoyvoy\CrossDatabase\Eloquent\Model`
4029

4130
# Supported PHP Versions
42-
* \>=7.0
31+
* \>=8.1
4332

4433
# Supported Databases
4534
* MySQL
35+
* MariaDB
4636
* PostgreSQL
4737
* SQL Server
4838

0 commit comments

Comments
 (0)