Skip to content

Commit 5b7490b

Browse files
authored
Merge pull request #2 from issakujitsuk/patch-for-laravel9
Laravel 9 support added!
2 parents 91795e7 + d6637b4 commit 5b7490b

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ A super simple package allowing for use MySQL `USE INDEX` and `FORCE INDEX` stat
44

55
## Requirements
66
- PHP `^7.4 | ^8.0`
7-
- Laravel 6, 7 and 8
7+
- Laravel 6, 7, 8 and 9
88

99
## Installation
1010

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
],
1919
"require": {
2020
"php": "^7.4 | ^8.0",
21-
"illuminate/support": "^6.0|^7.0|^8.0"
21+
"illuminate/support": "^6.0|^7.0|^8.0|^9.0"
2222
},
2323
"autoload": {
2424
"psr-4": {

src/ModelUseIndex.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
use Illuminate\Support\Facades\DB;
88

99
/**
10-
* @method Builder useIndex(string $index)
11-
* @method Builder forceIndex(string $index)
12-
* @method Builder ignoreIndex(string $index)
10+
* @method Builder useIndex(string|string[] $index)
11+
* @method Builder forceIndex(string|string[] $index)
12+
* @method Builder ignoreIndex(string|string[] $index)
1313
*
1414
*/
1515
trait ModelUseIndex

0 commit comments

Comments
 (0)