Skip to content

Commit 32fab9d

Browse files
committed
Add Laravel 11 and PHP 8.3 support
1 parent 9c2e341 commit 32fab9d

File tree

5 files changed

+24
-9
lines changed

5 files changed

+24
-9
lines changed

.github/workflows/lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
with:
1515
command: install
1616
only_args: -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist --ignore-platform-reqs
17-
php_version: 8.1
17+
php_version: 8.3
1818

1919
- name: Run PHP-CS-Fixer
2020
run: vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.php --diff --dry-run
@@ -30,7 +30,7 @@ jobs:
3030
with:
3131
command: install
3232
only_args: -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist --ignore-platform-reqs
33-
php_version: 8.1
33+
php_version: 8.3
3434

3535
- name: Run PHP CodeSniffer
3636
run: vendor/bin/phpcs --extensions=php

.github/workflows/unittests.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ jobs:
1616
laravel: 10.*
1717
testbench: 8.*
1818
composer-flag: '--prefer-stable'
19+
- php: 8.3
20+
laravel: 10.*
21+
testbench: 8.*
22+
composer-flag: '--prefer-stable'
1923
- php: 8.1
2024
laravel: 10.*
2125
testbench: 8.*
@@ -24,7 +28,10 @@ jobs:
2428
laravel: 10.*
2529
testbench: 8.*
2630
composer-flag: '--prefer-lowest'
27-
31+
- php: 8.3
32+
laravel: 10.*
33+
testbench: 8.*
34+
composer-flag: '--prefer-lowest'
2835
runs-on: ubuntu-latest
2936

3037
steps:

composer.json

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
{
22
"name": "korridor/laravel-model-validation-rules",
33
"description": "A laravel validation rule that uses eloquent to validate if a model exists",
4-
"keywords": ["validation", "laravel", "rule", "model", "exist", "eloquent"],
4+
"keywords": [
5+
"validation",
6+
"laravel",
7+
"rule",
8+
"model",
9+
"exist",
10+
"eloquent"
11+
],
512
"homepage": "https://github.com/korridor/laravel-model-validation-rules",
613
"authors": [
714
{
@@ -12,11 +19,11 @@
1219
"license": "MIT",
1320
"require": {
1421
"php": ">=8.1",
15-
"illuminate/support": "^10",
16-
"illuminate/database": "^10"
22+
"illuminate/support": "^10|^11",
23+
"illuminate/database": "^10|^11"
1724
},
1825
"require-dev": {
19-
"orchestra/testbench": "^8.0",
26+
"orchestra/testbench": "^8.0|^9.0",
2027
"phpunit/phpunit": "^10",
2128
"friendsofphp/php-cs-fixer": "^3.6",
2229
"squizlabs/php_codesniffer": "^3.5"

docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM php:8.1-cli
1+
FROM php:8.3-cli
22

33
ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
44

readme.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ composer require korridor/laravel-model-validation-rules "^2.1"
3333

3434
This package is tested for the following Laravel and PHP versions:
3535

36-
- 10.* (PHP 8.1, 8.2)
36+
- 10.* (PHP 8.1, 8.2, 8.3)
37+
- 11.* (PHP 8.2, 8.3)
3738

3839
## Usage examples
3940

0 commit comments

Comments
 (0)