Skip to content

Commit dc03db6

Browse files
authored
Merge pull request #4 from mr4rtur/laravel-8-support
Support for Laravel 8
2 parents b2ee7f5 + a600254 commit dc03db6

File tree

4 files changed

+21
-8
lines changed

4 files changed

+21
-8
lines changed

.travis.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,22 @@
11
language: php
22
php:
33
- '7.2'
4+
- '7.3'
5+
6+
env:
7+
matrix:
8+
- LARAVEL='^6.0'
9+
- LARAVEL='^7.0'
10+
- LARAVEL='^8.0'
11+
12+
jobs:
13+
exclude:
14+
- php: '7.2'
15+
env: LARAVEL='^8.0'
416

517
install:
6-
- travis_retry composer install --no-interaction
18+
- travis_retry composer require "illuminate/database:${LARAVEL}" --no-update
19+
- travis_retry composer install --prefer-source --no-interaction
720

821
before_script:
922
- export CODECOV_TOKEN="6de43b13-9ea8-498c-bb32-c29f3f098517"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ But note that this is not a silver bullet for solving all n+1 queries. As you ca
6464

6565
## Installation
6666

67-
Laravel 6.x and 7.x is supported.
67+
Laravel 6.x, 7.x, and 8.x is supported.
6868

6969
```
7070
composer require stancl/laravel-hasmanywithinverse

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@
2020
}
2121
],
2222
"require": {
23-
"php": "^7.2",
24-
"illuminate/database": "^6.0|^7.0"
23+
"php": "^7.2|^7.3",
24+
"illuminate/database": "^6.0|^7.0|^8.0"
2525
},
2626
"require-dev": {
27-
"phpunit/phpunit": "^8.0",
28-
"orchestra/testbench": "^5.1"
27+
"phpunit/phpunit": "^8.4|^9.0",
28+
"orchestra/testbench": "^4.0|^5.0|^6.0"
2929
}
3030
}

tests/TestCase.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ public function setUp(): void
1414
parent::setUp();
1515

1616
Schema::create('parents', function (Blueprint $table) {
17-
$table->id('id');
17+
$table->bigIncrements('id');
1818
});
1919

2020
Schema::create('children', function (Blueprint $table) {
21-
$table->id('id');
21+
$table->bigIncrements('id');
2222

2323
$table->unsignedBigInteger('parent_id');
2424
});

0 commit comments

Comments
 (0)