Skip to content

Commit b7e5556

Browse files
authored
Laravel 11 (#120)
* Laravel 11 support
1 parent aa7b232 commit b7e5556

19 files changed

+135
-233
lines changed

.github/workflows/test.yml

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,35 +2,36 @@ name: Test
22

33
on:
44
push:
5-
branches: [ master ]
5+
branches:
6+
- master
67
pull_request:
7-
branches: [ master ]
8+
branches:
9+
- master
810

911
jobs:
1012
test:
11-
1213
runs-on: ubuntu-latest
14+
1315
strategy:
1416
fail-fast: false
1517
matrix:
16-
php: [8.1]
17-
laravel: [10.*]
18+
php: ['8.1', '8.2', '8.3']
19+
laravel: ['10.*', '11.*']
1820
dependency-version: [prefer-lowest, prefer-stable]
1921
include:
2022
- laravel: 10.*
2123
testbench: 8.*
24+
- laravel: 11.*
25+
testbench: 9.*
26+
exclude:
27+
- laravel: 11.*
28+
php: 8.1
2229

2330
name: P ${{ matrix.php }} - L ${{ matrix.laravel }} - ${{ matrix.dependency-version }}
2431

2532
steps:
2633
- name: Checkout code
27-
uses: actions/checkout@v2
28-
29-
- name: Cache dependencies
30-
uses: actions/cache@v2
31-
with:
32-
path: ~/.composer/cache/files
33-
key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
34+
uses: actions/checkout@v4
3435

3536
- name: Setup PHP
3637
uses: shivammathur/setup-php@v2

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ vendor/
33
/.idea
44
.php_cs.cache
55
composer.lock
6-
/.phpunit.result.cache
6+
/.phpunit.cache
77
# Commit your application's lock file http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file
88
# You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file
99
# composer.lock
10+
/.php-cs-fixer.cache

.scrutinizer.yml

Lines changed: 0 additions & 38 deletions
This file was deleted.

.styleci.yml

Lines changed: 0 additions & 3 deletions
This file was deleted.

.travis.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

CHANGELOG.md

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

33
All notable changes to `glorand/laravel-model-settings` will be documented in this file
44

5+
## 7.0.0 - 2024-03-13
6+
### Added
7+
- Add support for Laravel 11
8+
- 8.1 min. php version
9+
510
## 5.0.0 - 2022-02-10
611
### Added
712
- Add support for Laravel 9 by @belzaaron

README.md

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -23,25 +23,12 @@
2323
<a href="LICENSE.md">
2424
<img src="https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat" alt="Software License">
2525
</a>
26-
<a href="https://codeclimate.com/github/glorand/laravel-model-settings/maintainability">
27-
<img src="https://api.codeclimate.com/v1/badges/ea0941afe155dd14f5d8/maintainability" alt="maintainability" />
28-
</a>
29-
<br />
30-
<a href="https://github.styleci.io/repos/163381474">
31-
<img src="https://github.styleci.io/repos/163381474/shield?branch=master&style=flat" alt="StyleCI">
32-
</a>
33-
<a href="https://scrutinizer-ci.com/g/glorand/laravel-model-settings/">
34-
<img src="https://scrutinizer-ci.com/g/glorand/laravel-model-settings/badges/quality-score.png?b=master" alt="Scrutinizer Code Quality">
35-
</a>
36-
<a href="https://scrutinizer-ci.com/g/glorand/laravel-model-settings/?branch=master">
37-
<img src="https://scrutinizer-ci.com/g/glorand/laravel-model-settings/badges/coverage.png?b=master" alt="Scrutinizer Code Coverage"/>
38-
</a>
3926
<br />
4027
<a title="MadeWithLaravel.com Shield" href="https://madewithlaravel.com/p/laravel-model-settings/shield-link"> <img src="https://madewithlaravel.com/storage/repo-shields/1716-shield.svg"/></a>
4128
<a title="PHP Version" href="#"><img src="https://img.shields.io/packagist/php-v/glorand/laravel-model-settings" alt="PHP Version" /></a>
4229
</p>
4330

44-
The package requires PHP 7.3+ and follows the FIG standards PSR-1, PSR-2, PSR-4 and PSR-12
31+
The package requires PHP 8.1+ and follows the FIG standards PSR-1, PSR-2, PSR-4 and PSR-12
4532
to ensure a high level of interoperability between shared PHP.
4633

4734
Bug reports, feature requests, and pull requests can be submitted by following our [Contribution Guide](CONTRIBUTING.md).

composer.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,17 @@
1818
],
1919
"require": {
2020
"php": "^8.1",
21-
"illuminate/config": "^10.0",
22-
"illuminate/database": "^10.0",
23-
"illuminate/support": "^10.0",
24-
"illuminate/console": "^10.0",
25-
"illuminate/filesystem": "^10.0",
26-
"illuminate/cache": "^10.0",
21+
"illuminate/config": "^10.0|^11.0",
22+
"illuminate/database": "^10.0|^11.0",
23+
"illuminate/support": "^10.0|^11.0",
24+
"illuminate/console": "^10.0|^11.0",
25+
"illuminate/filesystem": "^10.0|^11.0",
26+
"illuminate/cache": "^10.0|^11.0",
2727
"ext-json": "*"
2828
},
2929
"require-dev": {
30-
"phpunit/phpunit": "^9.5.10",
31-
"orchestra/testbench": "^8.0",
30+
"phpunit/phpunit": "^10.5|^11.0",
31+
"orchestra/testbench": "^8.0|^9.0",
3232
"friendsofphp/php-cs-fixer": "^3.14",
3333
"josiasmontag/laravel-redis-mock": "^1.2"
3434
},

phpunit.xml.dist

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,10 @@
22
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
33
bootstrap="vendor/autoload.php"
44
backupGlobals="false"
5-
backupStaticAttributes="false"
65
colors="true"
7-
verbose="true"
8-
convertErrorsToExceptions="true"
9-
convertNoticesToExceptions="true"
10-
convertWarningsToExceptions="true"
116
processIsolation="false"
127
stopOnFailure="false"
13-
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
14-
<coverage processUncoveredFiles="true">
15-
<include>
16-
<directory suffix=".php">src</directory>
17-
</include>
18-
</coverage>
8+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" cacheDirectory=".phpunit.cache" backupStaticProperties="false">
199
<testsuites>
2010
<testsuite name="Glorand Model Settings Test Suite">
2111
<directory>tests</directory>
@@ -27,4 +17,9 @@
2717
<php>
2818

2919
</php>
20+
<source>
21+
<include>
22+
<directory suffix=".php">src</directory>
23+
</include>
24+
</source>
3025
</phpunit>

0 commit comments

Comments
 (0)