From d76dea4c10c55b29176becbac8d34c4bc152fbe7 Mon Sep 17 00:00:00 2001 From: Alexandre Quercia Date: Tue, 12 May 2020 13:49:52 +0200 Subject: [PATCH] Add compatibility for Laravel 5.5 (#26) --- .travis.yml | 1 + README.md | 2 +- composer.json | 6 +++--- tests/JsonResource.php | 21 +++++++++++++++++++++ tests/PostResource.php | 1 - tests/TagResource.php | 1 - 6 files changed, 26 insertions(+), 6 deletions(-) create mode 100644 tests/JsonResource.php diff --git a/.travis.yml b/.travis.yml index c3f71a0..7be2b18 100644 --- a/.travis.yml +++ b/.travis.yml @@ -20,6 +20,7 @@ env: - LARAVEL_VERSION=5.8.* TESTBENCH_VERSION=3.8.* - LARAVEL_VERSION=5.7.* TESTBENCH_VERSION=3.7.* - LARAVEL_VERSION=5.6.* TESTBENCH_VERSION=3.6.* + - LARAVEL_VERSION=5.5.* TESTBENCH_VERSION=3.5.* before_script: - composer self-update diff --git a/README.md b/README.md index ccec826..dfbaefa 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ Rapid pagination without using OFFSET ## Requirements - PHP: ^7.1 -- Laravel: ^5.6 || ^6.0 || ^7.0 +- Laravel: ^5.5 || ^5.6 || ^6.0 || ^7.0 - [lampager/lampager](https://github.com/lampager/lampager): ^0.4 ## Installing diff --git a/composer.json b/composer.json index 11e782b..a4e9873 100644 --- a/composer.json +++ b/composer.json @@ -24,9 +24,9 @@ "php": "^7.1", "ext-json": "*", "lampager/lampager": "^0.4", - "illuminate/contracts": "^5.6 || ^6.0 || ^7.0 || ^8.0", - "illuminate/support": "^5.6 || ^6.0 || ^7.0 || ^8.0", - "illuminate/database": "^5.6 || ^6.0 || ^7.0 || ^8.0" + "illuminate/contracts": "^5.5 || ^5.6 || ^6.0 || ^7.0 || ^8.0", + "illuminate/support": "^5.5 || ^5.6 || ^6.0 || ^7.0 || ^8.0", + "illuminate/database": "^5.5 || ^5.6 || ^6.0 || ^7.0 || ^8.0" }, "require-dev": { "orchestra/testbench": "^4.0", diff --git a/tests/JsonResource.php b/tests/JsonResource.php new file mode 100644 index 0000000..ac5f3a2 --- /dev/null +++ b/tests/JsonResource.php @@ -0,0 +1,21 @@ +