Skip to content

Commit 6fda041

Browse files
Merge pull request #13 from ARCANEDEV/update-laravel_5.6_support
Adding support to Laravel 5.6
2 parents 73609df + 4665e94 commit 6fda041

File tree

8 files changed

+29
-29
lines changed

8 files changed

+29
-29
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ language: php
33
sudo: false
44

55
php:
6-
- 7.0
6+
- 7.1.3
77
- 7.1
88
- 7.2
99
- nightly

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ This Laravel Notes will allow you to add a notes system into your Laravel projec
2020
* Easy setup & configuration.
2121
* Well documented & IDE Friendly.
2222
* Well tested with maximum code quality.
23-
* Laravel `5.1 | 5.2 | 5.3 | 5.4 | 5.5` are supported.
23+
* Laravel `5.1 | 5.2 | 5.3 | 5.4 | 5.5 | 5.6` are supported.
2424
* Made with :heart: & :coffee:.
2525

2626
## Table of contents
2727

28-
1. [Installation and Setup](_docs/1.Installation-and-Setup.md)
29-
2. [Configuration](_docs/2.Configuration.md)
30-
3. [Usage](_docs/3.Usage.md)
28+
1. [Installation and Setup](_docs/1-Installation-and-Setup.md)
29+
2. [Configuration](_docs/2-Configuration.md)
30+
3. [Usage](_docs/3-Usage.md)
3131

3232
## Contribution
3333

@@ -42,7 +42,7 @@ If you discover any security related issues, please email arcanedev.maroc@gmail.
4242
- [ARCANEDEV][link-author]
4343
- [All Contributors][link-contributors]
4444

45-
[badge_laravel]: https://img.shields.io/badge/For%20Laravel-5.1%20to%205.5-orange.svg?style=flat-square
45+
[badge_laravel]: https://img.shields.io/badge/For%20Laravel-5.1%20to%205.6-orange.svg?style=flat-square
4646
[badge_license]: https://img.shields.io/packagist/l/arcanedev/laravel-notes.svg?style=flat-square
4747
[badge_build]: https://img.shields.io/travis/ARCANEDEV/LaravelNotes.svg?style=flat-square
4848
[badge_coverage]: https://img.shields.io/scrutinizer/coverage/g/ARCANEDEV/LaravelNotes.svg?style=flat-square
File renamed without changes.
Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
## Table of contents
44

5-
1. [Installation and Setup](1.Installation-and-Setup.md)
6-
2. [Configuration](2.Configuration.md)
7-
3. [Usage](3.Usage.md)
5+
1. [Installation and Setup](1-Installation-and-Setup.md)
6+
2. [Configuration](2-Configuration.md)
7+
3. [Usage](3-Usage.md)
88

99
## Server Requirements
1010

@@ -21,16 +21,19 @@ The Laravel Notes package has a few system requirements:
2121
| ![Laravel Notes v0.x][laravel_notes_0_x] | ![Laravel v5.1][laravel_5_1] ![Laravel v5.2][laravel_5_2] ![Laravel v5.3][laravel_5_3] |
2222
| ![Laravel Notes v1.x][laravel_notes_1_x] | ![Laravel v5.4][laravel_5_4] |
2323
| ![Laravel Notes v2.x][laravel_notes_2_x] | ![Laravel v5.5][laravel_5_5] |
24+
| ![Laravel Notes v3.x][laravel_notes_3_x] | ![Laravel v5.6][laravel_5_6] |
2425

2526
[laravel_5_1]: https://img.shields.io/badge/v5.1-supported-brightgreen.svg?style=flat-square "Laravel v5.1"
2627
[laravel_5_2]: https://img.shields.io/badge/v5.2-supported-brightgreen.svg?style=flat-square "Laravel v5.2"
2728
[laravel_5_3]: https://img.shields.io/badge/v5.3-supported-brightgreen.svg?style=flat-square "Laravel v5.3"
2829
[laravel_5_4]: https://img.shields.io/badge/v5.4-supported-brightgreen.svg?style=flat-square "Laravel v5.4"
2930
[laravel_5_5]: https://img.shields.io/badge/v5.5-supported-brightgreen.svg?style=flat-square "Laravel v5.5"
31+
[laravel_5_6]: https://img.shields.io/badge/v5.6-supported-brightgreen.svg?style=flat-square "Laravel v5.6"
3032

3133
[laravel_notes_0_x]: https://img.shields.io/badge/version-0.*-blue.svg?style=flat-square "LaravelNotes v0.*"
3234
[laravel_notes_1_x]: https://img.shields.io/badge/version-1.*-blue.svg?style=flat-square "LaravelNotes v1.*"
3335
[laravel_notes_2_x]: https://img.shields.io/badge/version-2.*-blue.svg?style=flat-square "LaravelNotes v2.*"
36+
[laravel_notes_3_x]: https://img.shields.io/badge/version-3.*-blue.svg?style=flat-square "LaravelNotes v3.*"
3437

3538
## Composer
3639

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
## Table of contents
44

5-
1. [Installation and Setup](1.Installation-and-Setup.md)
6-
2. [Configuration](2.Configuration.md)
7-
3. [Usage](3.Usage.md)
5+
1. [Installation and Setup](1-Installation-and-Setup.md)
6+
2. [Configuration](2-Configuration.md)
7+
3. [Usage](3-Usage.md)
88

99
You can customize the package by editing the `config/notes.php` config file:
1010

_docs/3.Usage.md renamed to _docs/3-Usage.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
## Table of contents
44

5-
1. [Installation and Setup](1.Installation-and-Setup.md)
6-
2. [Configuration](2.Configuration.md)
7-
3. [Usage](3.Usage.md)
5+
1. [Installation and Setup](1-Installation-and-Setup.md)
6+
2. [Configuration](2-Configuration.md)
7+
3. [Usage](3-Usage.md)
88

99
First things first, edit your eloquent model by using the `Arcanedev\LaravelNotes\Traits\HasManyNotes` trait.
1010

composer.json

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,13 @@
1414
"type": "library",
1515
"license": "MIT",
1616
"require": {
17-
"php": ">=7.0",
18-
"arcanedev/support": "~4.2.0"
17+
"php": ">=7.1.3",
18+
"arcanedev/support": "~4.3.0"
1919
},
2020
"require-dev": {
21-
"orchestra/testbench": "~3.5.0",
22-
"orchestra/database": "~3.5.0",
23-
"phpunit/phpcov": "~4.0",
24-
"phpunit/phpunit": "~6.0"
21+
"orchestra/testbench": "~3.6.0",
22+
"phpunit/phpunit": "~7.0",
23+
"phpunit/phpcov": "~5.0"
2524
},
2625
"autoload": {
2726
"psr-4": {

tests/TestCase.php

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ public function setUp()
4242
protected function getPackageProviders($app)
4343
{
4444
return [
45-
\Orchestra\Database\ConsoleServiceProvider::class,
4645
\Arcanedev\LaravelNotes\LaravelNotesServiceProvider::class,
4746
];
4847
}
@@ -85,15 +84,14 @@ protected function getEnvironmentSetUp($app)
8584
*/
8685
protected function migrate()
8786
{
88-
$this->artisan('migrate', [
89-
'--database' => 'testing',
90-
'--realpath' => realpath(__DIR__.'/../database/migrations'),
87+
$migrations = array_map('realpath', [
88+
__DIR__.'/../database/migrations',
89+
__DIR__.'/fixtures/migrations',
9190
]);
9291

93-
$this->artisan('migrate', [
94-
'--database' => 'testing',
95-
'--realpath' => realpath(__DIR__.'/fixtures/migrations'),
96-
]);
92+
foreach ($migrations as $path) {
93+
$this->loadMigrationsFrom($path);
94+
}
9795
}
9896

9997
/**

0 commit comments

Comments
 (0)