Skip to content
This repository was archived by the owner on Jul 31, 2025. It is now read-only.

Commit 2db6217

Browse files
authored
Fix compatability with Laravel 5.8.x, 6.x and jenssegers/mongodb package (#4)
* Added GitHub actions to test compatibility * Added semantic versioning * Fix compatability with Laravel 5.8.x, 6.x and jenssegers/mongodb package
1 parent b7fb1f0 commit 2db6217

File tree

4 files changed

+80
-3
lines changed

4 files changed

+80
-3
lines changed

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

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

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

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

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
A MongoDB session driver for Laravel
44

5+
| **Laravel<br/>Version** | **Package<br/>Version** | **Install using<br/>this command** |
6+
|------------------------|-------------------------|---------------------------------------------------|
7+
| 5.x.x, 6.x | 1.x.x | composer require 1ff/laravel-mongodb-session:^1.0 |
8+
| 7.x | 2.x.x | composer require 1ff/laravel-mongodb-session:^2.0 |
9+
| 8.x | 3.x.x | composer require 1ff/laravel-mongodb-session:^3.0 |
10+
| 9.x | 4.x.x | Comming soon |
11+
512
Installation
613
------------
714

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
"name": "1ff/laravel-mongodb-session",
33
"description": "A mongodb session driver for laravel",
44
"type": "library",
5-
"version": "1.1.1",
5+
"version": "1.1.2",
66
"require": {
7-
"jenssegers/mongodb": "3.*",
8-
"illuminate/session": "5.*|6.*"
7+
"jenssegers/mongodb": "^3.5|^3.6",
8+
"illuminate/session": "^5.0|^6.0"
99
},
1010
"license": "MIT",
1111
"authors": [

0 commit comments

Comments
 (0)