diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml
index ba093de..6bdd2fd 100644
--- a/.github/workflows/run-tests.yml
+++ b/.github/workflows/run-tests.yml
@@ -9,7 +9,7 @@ jobs:
strategy:
fail-fast: true
matrix:
- php: [8.0, 8.1]
+ php: [8.1, 8.2, 8.3]
dependency-version: [prefer-lowest, prefer-stable]
name: PHP ${{ matrix.php }} - ${{ matrix.dependency-version }}
diff --git a/.gitignore b/.gitignore
index aea4dfb..a30f3fd 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,5 @@
/.idea
+/.phpunit.cache
/build
/vendor
.phpunit.result.cache
diff --git a/.scrutinizer.yml b/.scrutinizer.yml
index 69d4755..d44a72f 100644
--- a/.scrutinizer.yml
+++ b/.scrutinizer.yml
@@ -22,7 +22,7 @@ checks:
tools:
external_code_coverage:
timeout: 600
- runs: 4
+ runs: 2
php_code_sniffer:
enabled: true
config:
diff --git a/README.md b/README.md
index bfc415e..75dd5bf 100644
--- a/README.md
+++ b/README.md
@@ -18,7 +18,7 @@ Feel free to check out the [releases](https://github.com/ARCANEDEV/LaravelSettin
### Features
- * Laravel `5.2` to `9.x` are supported.
+ * Laravel `5.2` to `10.x` are supported.
* Multiple store drivers: `array`, `json`, `database`, `redis`.
* Easy setup & configuration.
* Well documented & IDE Friendly.
@@ -45,7 +45,7 @@ Any ideas are welcome. Feel free to submit any issues or pull requests, please c
- [All Contributors][link-contributors]
[badge_license]: https://img.shields.io/packagist/l/arcanedev/laravel-settings.svg?style=flat-square
-[badge_laravel]: https://img.shields.io/badge/Laravel-5.2%20to%209.x-orange.svg?style=flat-square
+[badge_laravel]: https://img.shields.io/badge/Laravel-5.2%20to%2010.x-orange.svg?style=flat-square
[badge_build]: https://img.shields.io/github/workflow/status/ARCANEDEV/LaravelSettings/run-tests?style=flat-square
[badge_coverage]: https://img.shields.io/scrutinizer/coverage/g/ARCANEDEV/LaravelSettings.svg?style=flat-square
[badge_quality]: https://img.shields.io/scrutinizer/g/ARCANEDEV/LaravelSettings.svg?style=flat-square
diff --git a/_docs/1-Installation-and-Setup.md b/_docs/1-Installation-and-Setup.md
index dfd0965..96b0515 100644
--- a/_docs/1-Installation-and-Setup.md
+++ b/_docs/1-Installation-and-Setup.md
@@ -8,20 +8,22 @@
## Version Compatibility
-| Laravel | LaravelSettings |
-|:-----------------------------|:----------------------------------------------|
-| ![Laravel v9.x][laravel_9_x] | ![LaravelSettings v9.x][laravel_settings_9_x] |
-| ![Laravel v8.x][laravel_8_x] | ![LaravelSettings v8.x][laravel_settings_8_x] |
-| ![Laravel v7.x][laravel_7_x] | ![LaravelSettings v7.x][laravel_settings_7_x] |
-| ![Laravel v6.x][laravel_6_x] | ![LaravelSettings v6.x][laravel_settings_6_x] |
-| ![Laravel v5.8][laravel_5_8] | ![LaravelSettings v5.x][laravel_settings_5_x] |
-| ![Laravel v5.7][laravel_5_7] | ![LaravelSettings v4.x][laravel_settings_4_x] |
-| ![Laravel v5.6][laravel_5_6] | ![LaravelSettings v3.x][laravel_settings_3_x] |
-| ![Laravel v5.5][laravel_5_5] | ![LaravelSettings v2.x][laravel_settings_2_x] |
-| ![Laravel v5.4][laravel_5_4] | ![LaravelSettings v1.x][laravel_settings_1_x] |
-| ![Laravel v5.3][laravel_5_3] | ![LaravelSettings v0.x][laravel_settings_0_x] |
-| ![Laravel v5.2][laravel_5_2] | ![LaravelSettings v0.x][laravel_settings_0_x] |
-
+| Laravel | LaravelSettings |
+|:-------------------------------|:------------------------------------------------|
+| ![Laravel v10.x][laravel_10_x] | ![LaravelSettings v10.x][laravel_settings_10_x] |
+| ![Laravel v9.x][laravel_9_x] | ![LaravelSettings v9.x][laravel_settings_9_x] |
+| ![Laravel v8.x][laravel_8_x] | ![LaravelSettings v8.x][laravel_settings_8_x] |
+| ![Laravel v7.x][laravel_7_x] | ![LaravelSettings v7.x][laravel_settings_7_x] |
+| ![Laravel v6.x][laravel_6_x] | ![LaravelSettings v6.x][laravel_settings_6_x] |
+| ![Laravel v5.8][laravel_5_8] | ![LaravelSettings v5.x][laravel_settings_5_x] |
+| ![Laravel v5.7][laravel_5_7] | ![LaravelSettings v4.x][laravel_settings_4_x] |
+| ![Laravel v5.6][laravel_5_6] | ![LaravelSettings v3.x][laravel_settings_3_x] |
+| ![Laravel v5.5][laravel_5_5] | ![LaravelSettings v2.x][laravel_settings_2_x] |
+| ![Laravel v5.4][laravel_5_4] | ![LaravelSettings v1.x][laravel_settings_1_x] |
+| ![Laravel v5.3][laravel_5_3] | ![LaravelSettings v0.x][laravel_settings_0_x] |
+| ![Laravel v5.2][laravel_5_2] | ![LaravelSettings v0.x][laravel_settings_0_x] |
+
+[laravel_10_x]: https://img.shields.io/badge/version-10.x-blue.svg?style=flat-square "Laravel v10.x"
[laravel_9_x]: https://img.shields.io/badge/version-9.x-blue.svg?style=flat-square "Laravel v9.x"
[laravel_8_x]: https://img.shields.io/badge/version-8.x-blue.svg?style=flat-square "Laravel v8.x"
[laravel_7_x]: https://img.shields.io/badge/version-7.x-blue.svg?style=flat-square "Laravel v7.x"
@@ -34,6 +36,7 @@
[laravel_5_3]: https://img.shields.io/badge/version-5.3-blue.svg?style=flat-square "Laravel v5.3"
[laravel_5_2]: https://img.shields.io/badge/version-5.2-blue.svg?style=flat-square "Laravel v5.2"
+[laravel_settings_10_x]: https://img.shields.io/badge/version-10.x-blue.svg?style=flat-square "LaravelSettings v10.x"
[laravel_settings_9_x]: https://img.shields.io/badge/version-9.x-blue.svg?style=flat-square "LaravelSettings v9.x"
[laravel_settings_8_x]: https://img.shields.io/badge/version-8.x-blue.svg?style=flat-square "LaravelSettings v8.x"
[laravel_settings_7_x]: https://img.shields.io/badge/version-7.x-blue.svg?style=flat-square "LaravelSettings v7.x"
diff --git a/composer.json b/composer.json
index e1c0269..df7b4c2 100644
--- a/composer.json
+++ b/composer.json
@@ -16,16 +16,16 @@
"type": "library",
"license": "MIT",
"require": {
- "php": "^8.0",
+ "php": "^8.1",
"ext-json": "*",
- "arcanedev/support": "^9.0"
+ "arcanedev/support": "^10.0"
},
"require-dev": {
- "laravel/framework": "^9.0",
- "mockery/mockery": "^1.4.2",
- "orchestra/testbench-core": "^7.0",
- "phpunit/phpunit": "^9.5.10",
- "predis/predis": "^1.1.9"
+ "laravel/framework": "^10.0",
+ "mockery/mockery": "^1.5.1",
+ "orchestra/testbench-core": "^8.18",
+ "phpunit/phpunit": "^10.0.7",
+ "predis/predis": "^2.0.2"
},
"autoload": {
"psr-4": {
@@ -40,7 +40,7 @@
},
"extra": {
"branch-alias": {
- "dev-develop": "9.x-dev"
+ "dev-develop": "10.x-dev"
},
"laravel": {
"providers": [
diff --git a/phpunit.xml.dist b/phpunit.xml.dist
index af332d7..e91e6ed 100644
--- a/phpunit.xml.dist
+++ b/phpunit.xml.dist
@@ -3,15 +3,16 @@
xsi:noNamespaceSchemaLocation="./vendor/phpunit/phpunit/phpunit.xsd"
bootstrap="vendor/autoload.php"
colors="true"
+ cacheDirectory=".phpunit.cache"
>
- ./tests
+ ./tests
-
+
- ./src
+ src
diff --git a/tests/Stores/AbstractStoreTest.php b/tests/Stores/AbstractStoreTestCase.php
similarity index 99%
rename from tests/Stores/AbstractStoreTest.php
rename to tests/Stores/AbstractStoreTestCase.php
index d06d125..edd3aec 100644
--- a/tests/Stores/AbstractStoreTest.php
+++ b/tests/Stores/AbstractStoreTestCase.php
@@ -15,7 +15,7 @@
*
* @author ARCANEDEV
*/
-abstract class AbstractStoreTest extends TestCase
+abstract class AbstractStoreTestCase extends TestCase
{
/* -----------------------------------------------------------------
| Main Methods
diff --git a/tests/Stores/ArrayStoreTest.php b/tests/Stores/ArrayStoreTest.php
index 648a7b5..4175219 100644
--- a/tests/Stores/ArrayStoreTest.php
+++ b/tests/Stores/ArrayStoreTest.php
@@ -11,7 +11,7 @@
*
* @author ARCANEDEV
*/
-class ArrayStoreTest extends AbstractStoreTest
+class ArrayStoreTest extends AbstractStoreTestCase
{
/* -----------------------------------------------------------------
| Main Methods
diff --git a/tests/Stores/DatabaseStoreTest.php b/tests/Stores/DatabaseStoreTest.php
index be429f6..9e537eb 100644
--- a/tests/Stores/DatabaseStoreTest.php
+++ b/tests/Stores/DatabaseStoreTest.php
@@ -12,7 +12,7 @@
*
* @author ARCANEDEV
*/
-class DatabaseStoreTest extends AbstractStoreTest
+class DatabaseStoreTest extends AbstractStoreTestCase
{
/* -----------------------------------------------------------------
| Main Methods
diff --git a/tests/Stores/JsonStoreTest.php b/tests/Stores/JsonStoreTest.php
index ae0596a..1a74938 100644
--- a/tests/Stores/JsonStoreTest.php
+++ b/tests/Stores/JsonStoreTest.php
@@ -9,7 +9,7 @@
*
* @author ARCANEDEV
*/
-class JsonStoreTest extends AbstractStoreTest
+class JsonStoreTest extends AbstractStoreTestCase
{
/* -----------------------------------------------------------------
| Main Methods
diff --git a/tests/Stores/RedisStoreTest.php b/tests/Stores/RedisStoreTest.php
index acd6a5f..e360524 100644
--- a/tests/Stores/RedisStoreTest.php
+++ b/tests/Stores/RedisStoreTest.php
@@ -9,7 +9,7 @@
*
* @author ARCANEDEV
*/
-class RedisStoreTest extends AbstractStoreTest
+class RedisStoreTest extends AbstractStoreTestCase
{
/* -----------------------------------------------------------------
| Main Methods