From 4856f07126748c681ab9feb705c627aa03f84164 Mon Sep 17 00:00:00 2001 From: akbarjimi Date: Wed, 3 Mar 2021 13:21:30 +0330 Subject: [PATCH] Fix spatie medialibrary --- composer.lock | 60 +++++++++---------- ... 2021_03_03_093326_create_media_table.php} | 3 +- 2 files changed, 32 insertions(+), 31 deletions(-) rename database/migrations/{2023_10_14_085115_create_media_table.php.php => 2021_03_03_093326_create_media_table.php} (89%) diff --git a/composer.lock b/composer.lock index 91600a6..59f8671 100644 --- a/composer.lock +++ b/composer.lock @@ -119,16 +119,16 @@ }, { "name": "aws/aws-sdk-php", - "version": "3.173.19", + "version": "3.173.20", "source": { "type": "git", "url": "https://github.com/aws/aws-sdk-php.git", - "reference": "63c6feca49bf4083f33bf250401c0c286759e101" + "reference": "3e6143f5c12986d727307d5d19d6aec21575d903" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/63c6feca49bf4083f33bf250401c0c286759e101", - "reference": "63c6feca49bf4083f33bf250401c0c286759e101", + "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/3e6143f5c12986d727307d5d19d6aec21575d903", + "reference": "3e6143f5c12986d727307d5d19d6aec21575d903", "shasum": "" }, "require": { @@ -136,9 +136,9 @@ "ext-pcre": "*", "ext-simplexml": "*", "guzzlehttp/guzzle": "^5.3.3|^6.2.1|^7.0", - "guzzlehttp/promises": "^1.0", - "guzzlehttp/psr7": "^1.4.1", - "mtdowling/jmespath.php": "^2.5", + "guzzlehttp/promises": "^1.4.0", + "guzzlehttp/psr7": "^1.7.0", + "mtdowling/jmespath.php": "^2.6", "php": ">=5.5" }, "require-dev": { @@ -203,9 +203,9 @@ "support": { "forum": "https://forums.aws.amazon.com/forum.jspa?forumID=80", "issues": "https://github.com/aws/aws-sdk-php/issues", - "source": "https://github.com/aws/aws-sdk-php/tree/3.173.19" + "source": "https://github.com/aws/aws-sdk-php/tree/3.173.20" }, - "time": "2021-03-01T19:15:59+00:00" + "time": "2021-03-02T19:13:50+00:00" }, { "name": "beberlei/assert", @@ -1313,16 +1313,16 @@ }, { "name": "laravel/framework", - "version": "v8.29.0", + "version": "v8.30.0", "source": { "type": "git", "url": "https://github.com/laravel/framework.git", - "reference": "d2eba352b3b3a3c515b18c5726b373fe5026733e" + "reference": "81ef9850cc388f2f92b868fb35ffb76f0c9a0f46" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/framework/zipball/d2eba352b3b3a3c515b18c5726b373fe5026733e", - "reference": "d2eba352b3b3a3c515b18c5726b373fe5026733e", + "url": "https://api.github.com/repos/laravel/framework/zipball/81ef9850cc388f2f92b868fb35ffb76f0c9a0f46", + "reference": "81ef9850cc388f2f92b868fb35ffb76f0c9a0f46", "shasum": "" }, "require": { @@ -1477,7 +1477,7 @@ "issues": "https://github.com/laravel/framework/issues", "source": "https://github.com/laravel/framework" }, - "time": "2021-02-23T14:27:41+00:00" + "time": "2021-03-02T14:28:44+00:00" }, { "name": "laravel/helpers", @@ -1690,16 +1690,16 @@ }, { "name": "laravel/socialite", - "version": "v5.2.1", + "version": "v5.2.2", "source": { "type": "git", "url": "https://github.com/laravel/socialite.git", - "reference": "8aa705d771f127317f60887515cfb2f777653ce5" + "reference": "8d25d574b4f2005411c0b9cb527ef5e745c1b07d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/socialite/zipball/8aa705d771f127317f60887515cfb2f777653ce5", - "reference": "8aa705d771f127317f60887515cfb2f777653ce5", + "url": "https://api.github.com/repos/laravel/socialite/zipball/8d25d574b4f2005411c0b9cb527ef5e745c1b07d", + "reference": "8d25d574b4f2005411c0b9cb527ef5e745c1b07d", "shasum": "" }, "require": { @@ -1755,20 +1755,20 @@ "issues": "https://github.com/laravel/socialite/issues", "source": "https://github.com/laravel/socialite" }, - "time": "2021-02-22T14:22:51+00:00" + "time": "2021-03-02T16:50:47+00:00" }, { "name": "laravel/tinker", - "version": "v2.6.0", + "version": "v2.6.1", "source": { "type": "git", "url": "https://github.com/laravel/tinker.git", - "reference": "daae1c43f1300fe88c05d83db6f3d8f76677ad88" + "reference": "04ad32c1a3328081097a181875733fa51f402083" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/tinker/zipball/daae1c43f1300fe88c05d83db6f3d8f76677ad88", - "reference": "daae1c43f1300fe88c05d83db6f3d8f76677ad88", + "url": "https://api.github.com/repos/laravel/tinker/zipball/04ad32c1a3328081097a181875733fa51f402083", + "reference": "04ad32c1a3328081097a181875733fa51f402083", "shasum": "" }, "require": { @@ -1821,9 +1821,9 @@ ], "support": { "issues": "https://github.com/laravel/tinker/issues", - "source": "https://github.com/laravel/tinker/tree/v2.6.0" + "source": "https://github.com/laravel/tinker/tree/v2.6.1" }, - "time": "2021-01-26T20:35:18+00:00" + "time": "2021-03-02T16:53:12+00:00" }, { "name": "league/commonmark", @@ -7335,16 +7335,16 @@ }, { "name": "laravel/sail", - "version": "v1.4.3", + "version": "v1.4.4", "source": { "type": "git", "url": "https://github.com/laravel/sail.git", - "reference": "0200ce6e0f697699bce036c42d91f1daab8039a8" + "reference": "67b76f430f8870f5a2384db5c87ff8321154e077" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/sail/zipball/0200ce6e0f697699bce036c42d91f1daab8039a8", - "reference": "0200ce6e0f697699bce036c42d91f1daab8039a8", + "url": "https://api.github.com/repos/laravel/sail/zipball/67b76f430f8870f5a2384db5c87ff8321154e077", + "reference": "67b76f430f8870f5a2384db5c87ff8321154e077", "shasum": "" }, "require": { @@ -7391,7 +7391,7 @@ "issues": "https://github.com/laravel/sail/issues", "source": "https://github.com/laravel/sail" }, - "time": "2021-02-24T21:20:16+00:00" + "time": "2021-03-02T16:47:59+00:00" }, { "name": "mockery/mockery", diff --git a/database/migrations/2023_10_14_085115_create_media_table.php.php b/database/migrations/2021_03_03_093326_create_media_table.php similarity index 89% rename from database/migrations/2023_10_14_085115_create_media_table.php.php rename to database/migrations/2021_03_03_093326_create_media_table.php index d0ac271..378b046 100644 --- a/database/migrations/2023_10_14_085115_create_media_table.php.php +++ b/database/migrations/2021_03_03_093326_create_media_table.php @@ -12,7 +12,7 @@ class CreateMediaTable extends Migration $table->bigIncrements('id'); $table->morphs('model'); - $table->uuid('uuid')->nullable(); + $table->uuid('uuid')->nullable()->unique(); $table->string('collection_name'); $table->string('name'); $table->string('file_name'); @@ -22,6 +22,7 @@ class CreateMediaTable extends Migration $table->unsignedBigInteger('size'); $table->json('manipulations'); $table->json('custom_properties'); + $table->json('generated_conversions'); $table->json('responsive_images'); $table->unsignedInteger('order_column')->nullable();