Skip to content

Commit ceccbdd

Browse files
authoredMar 11, 2025··
Merge pull request #47 from jamesmills/laravel-12-support
Add Laravel 12 support; fixes #46
2 parents e1d170b + 7ca7db7 commit ceccbdd

File tree

3 files changed

+25
-16
lines changed

3 files changed

+25
-16
lines changed
 

‎.github/workflows/tests.yml

+15-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: Tests
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
48

59
jobs:
610
test:
@@ -9,12 +13,20 @@ jobs:
913
fail-fast: false
1014
matrix:
1115
php: [8.2, 8.3, 8.4]
12-
laravel: [10.*, 11.*]
16+
laravel: [10.*, 11.*, 12.*]
1317
include:
1418
- laravel: 10.*
1519
testbench: 8.*
20+
phpunit: 10.*
21+
logfake: 2.3.0
1622
- laravel: 11.*
1723
testbench: 9.*
24+
phpunit: 11.*
25+
logfake: ^2.4
26+
- laravel: 12.*
27+
testbench: 10.*
28+
phpunit: 11.*
29+
logfake: ^2.4
1830

1931
name: P${{ matrix.php }} / L${{ matrix.laravel }}
2032

@@ -31,7 +43,7 @@ jobs:
3143

3244
- name: Install dependencies
3345
run: |
34-
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "nesbot/carbon:^2.72.2" --no-interaction --no-update
46+
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "phpunit/phpunit:${{ matrix.phpunit }}" "timacdonald/log-fake:${{ matrix.logfake }}" --no-interaction --no-update
3547
composer update --prefer-stable --prefer-dist --no-interaction
3648
3749
- name: Execute tests

‎README.md

+6-9
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,12 @@ Rate Limiting Notifications in Laravel using Laravel's native rate limiter to av
1414

1515
## Version Compatability
1616

17-
| Laravel | PHP | Laravel-Notification-Rate-Limit | Date |
18-
|:--------|:--------|:--------------------------------|:-----------|
19-
| 7.x/8.x | 7.1/8.0 | 1.1.0 | 2021-05-20 |
20-
| 9.x | 8.0 | 2.1.0 | 2023-08-26 |
21-
| 10.x | 8.0/8.1 | 2.1.0 | 2023-08-26 |
22-
| 10.x | 8.2/8.3 | 2.2.0 | 2024-03-18 |
23-
| 10.x | 8.2/8.3 | 3.0.0 | 2024-05-25 |
24-
| 11.x | 8.2/8.3 | 2.2.0 | 2024-03-18 |
25-
| 11.x | 8.2/8.3 | 3.1.1 | 2024-10-04 |
17+
| Laravel | PHP | Laravel-Notification-Rate-Limit | Date |
18+
|:----------|:--------|:--------------------------------|:-----------|
19+
| 7.x/8.x | 7.1/8.0 | 1.1.0 | 2021-05-20 |
20+
| 9.x | 8.0 | 2.1.0 | 2023-08-26 |
21+
| 10.x | 8.0/8.1 | 2.1.0 | 2023-08-26 |
22+
| 10.x-12.x | 8.2-8.4 | 3.2.0 | 2025-03-11 |
2623

2724
## Installation
2825

‎composer.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@
1717
],
1818
"require": {
1919
"php": "^8.2",
20-
"illuminate/support": "^10.0|^11.0"
20+
"illuminate/support": "^10.0|^11.0|^12.0"
2121
},
2222
"require-dev": {
23-
"orchestra/testbench": "^8.0|^9.0",
24-
"phpunit/phpunit": "^10.0",
25-
"timacdonald/log-fake": "^2.2.0"
23+
"orchestra/testbench": "^10.0",
24+
"phpunit/phpunit": "^11.0",
25+
"timacdonald/log-fake": "^2.4.0"
2626
},
2727
"autoload": {
2828
"psr-4": {

0 commit comments

Comments
 (0)
Please sign in to comment.