Skip to content

Commit 691dbae

Browse files
committed
Added support for Laravel 11.x (#35)
1 parent b43c07f commit 691dbae

File tree

5 files changed

+58
-45
lines changed

5 files changed

+58
-45
lines changed

.editorconfig

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,23 @@ root = true
22

33
[*]
44
charset = utf-8
5-
indent_size = 4
6-
indent_style = space
75
end_of_line = lf
86
insert_final_newline = true
97
trim_trailing_whitespace = true
8+
indent_style = space
9+
max_line_length = 120
10+
11+
[*.php]
12+
indent_size = 4
1013

1114
[*.md]
1215
trim_trailing_whitespace = false
16+
17+
[{*.html,*.less,*.sass,*.css,*.js,*.json}]
18+
indent_size = 2
19+
20+
[*.{xml,yml,yaml}]
21+
indent_size = 2
22+
23+
[composer.json]
24+
indent_size = 4

.github/workflows/run-tests-l10.yml

Lines changed: 0 additions & 39 deletions
This file was deleted.
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: "Run Tests - Laravel 11"
2+
3+
on:
4+
push:
5+
branches: [ v7.x, master ]
6+
7+
pull_request:
8+
branches: [ v7.x, master ]
9+
10+
jobs:
11+
tests:
12+
13+
runs-on: ubuntu-latest
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
php: [ 8.2, 8.3 ]
18+
laravel: [ 11.* ]
19+
include:
20+
- laravel: 11.*
21+
testbench: 8.*
22+
23+
name: P${{ matrix.php }} - L${{ matrix.laravel }}
24+
25+
steps:
26+
- name: Checkout code
27+
uses: actions/checkout@v2
28+
29+
- name: Setup PHP
30+
uses: shivammathur/setup-php@v2
31+
with:
32+
php-version: ${{ matrix.php }}
33+
extensions: pdo, sqlite, pdo_sqlite
34+
35+
- name: Install Dependencies
36+
run: composer install
37+
38+
- name: Execute tests
39+
run: vendor/bin/phpunit

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ A MongoDB cache driver for Laravel
44

55
| **Laravel<br/>Version** | **Package<br/>Version** | **Install using<br/>this command** |
66
|-------------------------|-------------------------|----------------------------------------------------|
7+
| 11.x | 7.x.x | composer require 1ff/laravel-mongodb-cache:^7.0 |
78
| 10.x | 6.x.x | composer require 1ff/laravel-mongodb-cache:^6.0 |
89
| 9.x | 5.x.x | composer require 1ff/laravel-mongodb-cache:^5.0 |
910
| 8.x | 4.x.x | composer require 1ff/laravel-mongodb-cache:^4.1 |

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
"name": "1ff/laravel-mongodb-cache",
33
"description": "A mongodb cache driver for laravel",
44
"type": "library",
5-
"version": "6.0.4",
5+
"version": "7.0.0",
66
"require": {
7-
"php": "^8.1",
8-
"illuminate/cache": "^10.0",
7+
"php": "^8.2|^8.3",
8+
"illuminate/cache": "^11.0",
99
"mongodb/laravel-mongodb": "^4.1"
1010
},
1111
"require-dev": {
12-
"orchestra/testbench": "^8.0"
12+
"orchestra/testbench": "^9.0"
1313
},
1414
"license": "MIT",
1515
"authors": [

0 commit comments

Comments
 (0)