Skip to content

Commit

Permalink
Merge pull request #1 from djoudi/master
Browse files Browse the repository at this point in the history
Add Support Laravel 6
  • Loading branch information
FreedomKnight authored Nov 21, 2019
2 parents 88fb9b7 + 8053925 commit 6ebb050
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,18 @@
],
"require": {
"php": "^7.0",
"illuminate/config": ">=5.5.0 || >=6.0.0",
"illuminate/database": ">=5.5.0 || >=6.0.0",
"illuminate/support": ">=5.5.0 || >=6.0.0",
"kalnoy/nestedset": ">=4.3 || >=5.0.0"
"illuminate/config": ">=5.5.0",
"illuminate/database": ">=5.5.0",
"illuminate/support": ">=5.5.0",
"kalnoy/nestedset": "^5.0"
},
"require-dev": {
"codedungeon/phpunit-result-printer": "^0.4.4 || ^0.26.0",
"friendsofphp/php-cs-fixer": "^1.11 || ^2.0.0",
"mockery/mockery": "^0.9.4 || ^1.0.0",
"orchestra/database": "~3.5.0 || ~4.0.0",
"orchestra/testbench": "~3.5.0 || ~4.0.0",
"phpunit/phpunit": "^6.2 || ^7.0 || ^8.0",
"phpunit/phpunit": "^6.2 || ^7.0|^8.0",
"squizlabs/php_codesniffer": "3.*",
"scrutinizer/ocular": "^1.3"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ public function up()
$connection = config('categorizable.connection');

Schema::connection($connection)->create('categories', function (Blueprint $table) {
$table->increments('id');
$table->bigIncrements('id');
$table->string('name');

$table->nestedSet();
$table->timestamps();
});

Schema::connection($connection)->create('categorizable', function (Blueprint $table) {
$table->increments('id');
$table->bigIncrements('id');
$table->unsignedInteger('category_id');
$table->nullableMorphs('categorizable');

Expand Down

0 comments on commit 6ebb050

Please sign in to comment.