Skip to content

Commit 4f353f9

Browse files
authored
Merge pull request #35 from djoudi/laravel-5
add Support laravel 6.0
2 parents d3b6168 + e2fd9b1 commit 4f353f9

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@
77
.settings
88
.buildpath
99
composer.lock
10-
/vendor
10+
/vendor
11+
.phpintel/*

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
],
1313
"require": {
1414
"php": ">=5.5.0",
15-
"illuminate/database": ">=5.0",
16-
"illuminate/support": ">=5.0"
15+
"illuminate/database": ">=5.0|^6.0",
16+
"illuminate/support": ">=5.0|^6.0"
1717
},
1818
"require-dev": {
1919
"orchestra/testbench": "~3.0",
20-
"phpunit/phpunit": "~4.0",
20+
"phpunit/phpunit": "~4.0|~8.0",
2121
"mockery/mockery": "~0.9"
2222
},
2323
"autoload": {

migrations/2016_02_07_000000_create_likeable_tables.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class CreateLikeableTables extends Migration
88
public function up()
99
{
1010
Schema::create('likeable_likes', function(Blueprint $table) {
11-
$table->increments('id');
11+
$table->bigIncrements('id');
1212
$table->string('likeable_id', 36);
1313
$table->string('likeable_type', 255);
1414
$table->string('user_id', 36)->index();
@@ -17,10 +17,10 @@ public function up()
1717
});
1818

1919
Schema::create('likeable_like_counters', function(Blueprint $table) {
20-
$table->increments('id');
20+
$table->bigIncrements('id');
2121
$table->string('likeable_id', 36);
2222
$table->string('likeable_type', 255);
23-
$table->unsignedInteger('count')->default(0);
23+
$table->unsignedBigInteger('count')->default(0);
2424
$table->unique(['likeable_id', 'likeable_type'], 'likeable_counts');
2525
});
2626

tests/CommonUseTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ protected function getEnvironmentSetUp($app)
2828
]);
2929

3030
\Schema::create('books', function ($table) {
31-
$table->increments('id');
31+
$table->bigIncrements('id');
3232
$table->string('name');
3333
$table->timestamps();
3434
});

0 commit comments

Comments
 (0)