Skip to content

Commit 617e826

Browse files
author
farhadzand
committed
Add PHP 8.1 support for Laravel 10.x compatibility
1 parent 64744ec commit 617e826

File tree

3 files changed

+22
-15
lines changed

3 files changed

+22
-15
lines changed

.github/workflows/tests.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,20 @@ jobs:
1717
strategy:
1818
fail-fast: false
1919
matrix:
20-
php: [ 8.2, 8.3, 8.4 ]
21-
laravel: [ 11.*, 12.* ]
20+
php: [ 8.1, 8.2, 8.3, 8.4 ]
21+
laravel: [ 10.*, 11.*, 12.* ]
22+
exclude:
23+
- php: 8.1
24+
laravel: 11.*
25+
- php: 8.1
26+
laravel: 12.*
2227
include:
2328
- laravel: 12.*
2429
testbench: 10.*
2530
- laravel: 11.*
2631
testbench: 9.*
32+
- laravel: 10.*
33+
testbench: 8.*
2734

2835
name: PHP${{ matrix.php }} - Laravel${{ matrix.laravel }} - ${{ matrix.dependency-version }}
2936

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ A comprehensive entity-level audit logging package for Laravel with model-specif
44

55
[![Latest Version on Packagist](https://img.shields.io/packagist/v/iamfarhad/laravel-audit-log.svg?style=flat-square)](https://packagist.org/packages/iamfarhad/laravel-audit-log)
66
[![Total Downloads](https://img.shields.io/packagist/dt/iamfarhad/laravel-audit-log.svg?style=flat-square)](https://packagist.org/packages/iamfarhad/laravel-audit-log)
7-
[![PHP Version](https://img.shields.io/packagist/php-v/iamfarhad/laravel-audit-log.svg?style=flat-square)](https://packagist.org/packages/iamfarhad/laravel-audit-log)
8-
[![Laravel Version](https://img.shields.io/badge/Laravel-11.x|12.x-red.svg?style=flat-square)](https://laravel.com/)
7+
[![PHP Version](https://img.shields.io/badge/php-%5E8.1-blue.svg?style=flat-square)](https://packagist.org/packages/iamfarhad/laravel-audit-log)
8+
[![Laravel Version](https://img.shields.io/badge/Laravel-10.x|11.x|12.x-red.svg?style=flat-square)](https://laravel.com/)
99
[![GitHub stars](https://img.shields.io/github/stars/iamfarhad/laravel-audit-log.svg?style=flat-square)](https://github.com/iamfarhad/laravel-audit-log/stargazers)
1010

1111
[![License](https://img.shields.io/packagist/l/iamfarhad/laravel-audit-log.svg?style=flat-square)](https://packagist.org/packages/iamfarhad/laravel-audit-log)
@@ -29,8 +29,8 @@ A comprehensive entity-level audit logging package for Laravel with model-specif
2929

3030
## Requirements
3131

32-
- PHP >= 8.2
33-
- Laravel 11.x or 12.x
32+
- PHP >= 8.1
33+
- Laravel 10.x, 11.x or 12.x (PHP 8.1 only supported with Laravel 10.x)
3434
- MySQL 8.0+
3535

3636
## Installation

composer.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,19 @@
2323
}
2424
],
2525
"require": {
26-
"php": "^8.2",
27-
"illuminate/support": "^11.0|^12.0",
28-
"illuminate/database": "^11.0|^12.0",
29-
"illuminate/events": "^11.0|^12.0",
30-
"illuminate/config": "^11.0|^12.0"
26+
"php": "^8.1",
27+
"illuminate/support": "^10.0|^11.0|^12.0",
28+
"illuminate/database": "^10.0|^11.0|^12.0",
29+
"illuminate/events": "^10.0|^11.0|^12.0",
30+
"illuminate/config": "^10.0|^11.0|^12.0"
3131
},
3232
"require-dev": {
33-
"phpunit/phpunit": "^10.0|^11.0",
34-
"orchestra/testbench": "^9.0|^10.0",
35-
"mockery/mockery": "^1.6",
33+
"phpunit/phpunit": "^9.0|^10.0|^11.0",
34+
"orchestra/testbench": "^8.0|^9.0|^10.0",
35+
"mockery/mockery": "^1.5",
3636
"phpstan/phpstan": "^1.10",
3737
"phpstan/phpstan-strict-rules": "^1.5",
38-
"laravel/pint": "^1.13"
38+
"laravel/pint": "^1.10"
3939
},
4040
"autoload": {
4141
"psr-4": {

0 commit comments

Comments
 (0)