Skip to content

Commit 9cab166

Browse files
ivosgemspont4e
andauthored
Update Laravel version to 12.x in workflows and dependencies (#31)
* Added support for Laravel 10.x (#15) * Updated mongodb/laravel-mongodb package (#16) * Refactor method signatures in MongoDbSessionHandler for clarity and type safety. Add .editorconfig for consistent coding style across files. Update composer.json to include ext-mongodb requirement. (#23) * V5.x rebase (#25) * v5.x to master (#17) * Added support for Laravel 10.x (#15) * Updated mongodb/laravel-mongodb package (#16) # Conflicts: # composer.json * Update laravel mongodb to rc1 (#18) * Added support for Laravel 10.x (#15) * Updated mongodb/laravel-mongodb package (#16) * Updated mongodb/laravel-mongodb to rc1. * Updated mongodb/laravel-mongodb to stable version 4. (#19) * Changed package version * Update deprecated MongoDB read preference constants to use current values (#28) * Update deprecated MongoDB read preference constants to use current values * Bump version to 5.0.5 in composer.json for updated dependencies * Update session testing suite, add MongoDB test cases, and configure PHPUnit - Enhance `.gitignore` to exclude `.phpunit.cache`. - Update GitHub workflow to include Testbench version for Laravel 10.x. - Create new feature tests: `TestHelperIntegrationTest`, `HttpSessionTest`, and `MongoDbSessionHandlerTest` to validate session handling with MongoDB. - Refactor MongoDB session command files to remove unnecessary docblocks. - Document testing process in `README.md`, including setup and expected results. - Add basic PHPUnit configuration file. - Define session environment in the base `TestCase`. - Ensure session operations like reading, writing, and destruction are tested against MongoDB. * Update GitHub Actions workflow to use MongoDB 7 and improve caching - Add MongoDB 7 service to CI workflow - Upgrade checkout action to v3 - Include MongoDB extension in PHP setup - Implement Composer dependency caching for faster builds - Modify composer install command for better performance - Set environment variables for MongoDB connection during test execution - Update README.md to reflect changes in the CI process * Remove deprecated MongoDB version constraint from composer.json * Update mongodb/laravel-mongodb package to version 5.0 in composer.json (#27) * Update mongodb/laravel-mongodb package to version 5.0 in composer.json * Update MongoDB commands and improve session handling Refactor the command to use `getDatabase()` instead of `getMongoDB()`. Update payload access in `MongoDbSessionHandler` from array syntax to object syntax for better readability. Adjust test assertions to match the new access methodology and ensure compatibility with Carbon instances for expiration and last activity timestamps. Clean up formatting inconsistencies throughout the code. * Update MongoDB connection method to use getDatabase() instead of getMongoDB() in MongodbSessionIndex command * Update GitHub Actions workflow to trigger on the master branch * Update Laravel version to 12.x in workflows and dependencies - Rename GitHub Actions workflow for Laravel version 12 - Change branch references from v6.x to v7.x - Update Laravel dependency from 11.* to 12.* - Adjust TestBench requirement to version 10.x in composer.json - Modify README to reflect updated package installation command for Laravel 12.x * Remove obsolete Laravel 10 test workflow, update PHPUnit schema, and refactor MongoDbSessionHandler - Delete the GitHub Actions workflow for running Laravel 10 tests as it is no longer needed. - Update the PHPUnit XML schema location to version 12.0 for compatibility. - Refactor `MongoDbSessionHandler` class constructor and method signatures to use type hints for improved type safety and clarity. --------- Co-authored-by: Ivaylo Mutafov <[email protected]>
1 parent 9471306 commit 9cab166

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

.github/workflows/run-tests-l11.yml renamed to .github/workflows/run-tests-l12.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
name: "Run Tests - Laravel 11"
1+
name: "Run Tests - Laravel 12"
22

33
on:
44
push:
5-
branches: [ v6.x, master ]
5+
branches: [ v7.x, master ]
66

77
pull_request:
8-
branches: [ v6.x, master ]
8+
branches: [ v7.x, master ]
99

1010
jobs:
1111
tests:
@@ -27,10 +27,10 @@ jobs:
2727
fail-fast: false
2828
matrix:
2929
php: [ 8.2 ]
30-
laravel: [ 11.* ]
30+
laravel: [ 12.* ]
3131
include:
32-
- laravel: 11.*
33-
testbench: 11.*
32+
- laravel: 12.*
33+
testbench: 10.*
3434

3535
name: P${{ matrix.php }} - L${{ matrix.laravel }}
3636

README.md

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

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

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"type": "library",
55
"require": {
66
"php": "^8.2",
7-
"illuminate/session": "^11.0",
7+
"illuminate/session": "^12.0",
88
"mongodb/laravel-mongodb": "^5.0",
99
"ext-mongodb": "*"
1010
},
1111
"require-dev": {
1212
"phpunit/phpunit": "^11.0",
13-
"orchestra/testbench": "^9.0"
13+
"orchestra/testbench": "^10.0"
1414
},
1515
"license": "MIT",
1616
"authors": [

0 commit comments

Comments
 (0)