Skip to content

Commit

Permalink
Support laravel 5.8
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack97 committed Jun 27, 2019
1 parent 29dbe13 commit ffab59b
Show file tree
Hide file tree
Showing 8 changed files with 957 additions and 348 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,2 +1,3 @@
/.idea
/vendor
/.phpunit.result.cache
4 changes: 2 additions & 2 deletions composer.json
Expand Up @@ -8,8 +8,8 @@
}
],
"require": {
"php": "^7.0",
"laravel/framework": "~5.5|~5.6|~5.7",
"php": "^7.1.3",
"laravel/framework": "5.5.*|5.6.*|5.7.*|5.8.*",
"intervention/image": "^2.4"
},
"require-dev": {
Expand Down
1,282 changes: 945 additions & 337 deletions composer.lock

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions database/migrations/create_media_table.stub
Expand Up @@ -9,7 +9,7 @@ class CreateMediaTable extends Migration
public function up()
{
Schema::create('media', function (Blueprint $table) {
$table->increments('id');
$table->bigIncrements('id');
$table->string('name');
$table->string('file_name');
$table->string('disk');
Expand All @@ -19,8 +19,8 @@ class CreateMediaTable extends Migration
});

Schema::create('mediables', function (Blueprint $table) {
$table->unsignedInteger('media_id')->index();
$table->unsignedInteger('mediable_id')->index();
$table->unsignedBigInteger('media_id')->index();
$table->unsignedBigInteger('mediable_id')->index();
$table->string('mediable_type');
$table->string('group');

Expand Down
2 changes: 1 addition & 1 deletion tests/HasMediaTest.php
Expand Up @@ -16,7 +16,7 @@ class HasMediaTest extends TestCase

protected $subject;

protected function setUp()
protected function setUp(): void
{
parent::setUp();

Expand Down
2 changes: 1 addition & 1 deletion tests/TestCase.php
Expand Up @@ -7,7 +7,7 @@

class TestCase extends BaseTestCase
{
protected function setUp()
protected function setUp(): void
{
parent::setUp();

Expand Down
Expand Up @@ -9,7 +9,7 @@ class CreateMediaTable extends Migration
public function up()
{
Schema::create('media', function (Blueprint $table) {
$table->increments('id');
$table->bigIncrements('id');
$table->string('name');
$table->string('file_name');
$table->string('disk');
Expand All @@ -20,8 +20,8 @@ public function up()
});

Schema::create('mediables', function (Blueprint $table) {
$table->unsignedInteger('media_id')->index();
$table->unsignedInteger('mediable_id')->index();
$table->unsignedBigInteger('media_id')->index();
$table->unsignedBigInteger('mediable_id')->index();
$table->string('mediable_type');
$table->string('group');

Expand Down
Expand Up @@ -9,7 +9,7 @@ class CreateSubjectsTable extends Migration
public function up()
{
Schema::create('subjects', function (Blueprint $table) {
$table->increments('id');
$table->bigIncrements('id');
$table->timestamps();
});
}
Expand Down

0 comments on commit ffab59b

Please sign in to comment.