diff --git a/app/Http/Controllers/Api/UploadImageController.php b/app/Http/Controllers/Api/UploadImageController.php index 7e01cc7a..3e200db8 100644 --- a/app/Http/Controllers/Api/UploadImageController.php +++ b/app/Http/Controllers/Api/UploadImageController.php @@ -8,6 +8,7 @@ use Illuminate\Http\Request; use Illuminate\Support\Facades\Storage; use Illuminate\Support\Facades\Validator; +use Illuminate\Validation\Rule; use Illuminate\Validation\Rules\File; use Random\RandomException; @@ -27,7 +28,11 @@ public function __construct( public function __invoke(Request $request): JsonResponse { $validator = Validator::make($request->all(), [ - 'upload' => ['required', File::image()->max(1024)], + 'upload' => [ + 'required', + File::image()->max(1024), + Rule::dimensions()->maxWidth(1200)->maxHeight(1200), + ], ]); if ($validator->fails()) { diff --git a/app/Models/Post.php b/app/Models/Post.php index 6c1fb8d5..927b9bb8 100644 --- a/app/Models/Post.php +++ b/app/Models/Post.php @@ -108,7 +108,7 @@ public function tagsJson(): Attribute // [{"id":"2","value":"C#"},{"id":"5","value":"Dart"}] return new Attribute( get: fn($value) => $this->tags - ->map(fn($tag) => ['id' => $tag->id, 'value' => $tag->name]) + ->map(fn(Tag $tag) => ['id' => $tag->id, 'value' => $tag->name]) ->toJson() ); } diff --git a/app/Models/User.php b/app/Models/User.php index 4b21751c..3f21cfb1 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -24,7 +24,7 @@ class User extends Authenticatable implements MustVerifyEmail /** * The attributes that are mass assignable. * - * @var array + * @var list */ protected $fillable = [ 'name', @@ -36,7 +36,7 @@ class User extends Authenticatable implements MustVerifyEmail /** * The attributes that should be hidden for serialization. * - * @var array + * @var list */ protected $hidden = [ 'password', diff --git a/composer.lock b/composer.lock index b0ee1641..906cd7c4 100644 --- a/composer.lock +++ b/composer.lock @@ -136,16 +136,16 @@ }, { "name": "aws/aws-sdk-php", - "version": "3.336.3", + "version": "3.336.6", "source": { "type": "git", "url": "https://github.com/aws/aws-sdk-php.git", - "reference": "b863c7953ebeeae191c3835bb5413f872cfbb753" + "reference": "0a99dab427f0a1c082775301141aeac3558691ad" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/b863c7953ebeeae191c3835bb5413f872cfbb753", - "reference": "b863c7953ebeeae191c3835bb5413f872cfbb753", + "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/0a99dab427f0a1c082775301141aeac3558691ad", + "reference": "0a99dab427f0a1c082775301141aeac3558691ad", "shasum": "" }, "require": { @@ -228,9 +228,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.336.3" + "source": "https://github.com/aws/aws-sdk-php/tree/3.336.6" }, - "time": "2024-12-23T19:13:29+00:00" + "time": "2024-12-28T04:16:13+00:00" }, { "name": "bref/bref", @@ -931,16 +931,16 @@ }, { "name": "egulias/email-validator", - "version": "4.0.2", + "version": "4.0.3", "source": { "type": "git", "url": "https://github.com/egulias/EmailValidator.git", - "reference": "ebaaf5be6c0286928352e054f2d5125608e5405e" + "reference": "b115554301161fa21467629f1e1391c1936de517" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/egulias/EmailValidator/zipball/ebaaf5be6c0286928352e054f2d5125608e5405e", - "reference": "ebaaf5be6c0286928352e054f2d5125608e5405e", + "url": "https://api.github.com/repos/egulias/EmailValidator/zipball/b115554301161fa21467629f1e1391c1936de517", + "reference": "b115554301161fa21467629f1e1391c1936de517", "shasum": "" }, "require": { @@ -986,7 +986,7 @@ ], "support": { "issues": "https://github.com/egulias/EmailValidator/issues", - "source": "https://github.com/egulias/EmailValidator/tree/4.0.2" + "source": "https://github.com/egulias/EmailValidator/tree/4.0.3" }, "funding": [ { @@ -994,7 +994,7 @@ "type": "github" } ], - "time": "2023-10-06T06:47:41+00:00" + "time": "2024-12-27T00:36:43+00:00" }, { "name": "ezyang/htmlpurifier", @@ -2003,16 +2003,16 @@ ], "type": "library", "extra": { - "branch-alias": { - "dev-master": "2.x-dev" - }, "laravel": { - "providers": [ - "Laravel\\Octane\\OctaneServiceProvider" - ], "aliases": { "Octane": "Laravel\\Octane\\Facades\\Octane" - } + }, + "providers": [ + "Laravel\\Octane\\OctaneServiceProvider" + ] + }, + "branch-alias": { + "dev-master": "2.x-dev" } }, "autoload": { @@ -2377,16 +2377,16 @@ }, { "name": "league/commonmark", - "version": "2.6.0", + "version": "2.6.1", "source": { "type": "git", "url": "https://github.com/thephpleague/commonmark.git", - "reference": "d150f911e0079e90ae3c106734c93137c184f932" + "reference": "d990688c91cedfb69753ffc2512727ec646df2ad" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/thephpleague/commonmark/zipball/d150f911e0079e90ae3c106734c93137c184f932", - "reference": "d150f911e0079e90ae3c106734c93137c184f932", + "url": "https://api.github.com/repos/thephpleague/commonmark/zipball/d990688c91cedfb69753ffc2512727ec646df2ad", + "reference": "d990688c91cedfb69753ffc2512727ec646df2ad", "shasum": "" }, "require": { @@ -2480,7 +2480,7 @@ "type": "tidelift" } ], - "time": "2024-12-07T15:34:16+00:00" + "time": "2024-12-29T14:10:59+00:00" }, { "name": "league/config", @@ -3228,16 +3228,16 @@ }, { "name": "nesbot/carbon", - "version": "3.8.3", + "version": "3.8.4", "source": { "type": "git", "url": "https://github.com/briannesbitt/Carbon.git", - "reference": "f01cfa96468f4c38325f507ab81a4f1d2cd93cfe" + "reference": "129700ed449b1f02d70272d2ac802357c8c30c58" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/f01cfa96468f4c38325f507ab81a4f1d2cd93cfe", - "reference": "f01cfa96468f4c38325f507ab81a4f1d2cd93cfe", + "url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/129700ed449b1f02d70272d2ac802357c8c30c58", + "reference": "129700ed449b1f02d70272d2ac802357c8c30c58", "shasum": "" }, "require": { @@ -3330,7 +3330,7 @@ "type": "tidelift" } ], - "time": "2024-12-21T18:03:19+00:00" + "time": "2024-12-27T09:25:35+00:00" }, { "name": "nette/schema", @@ -3482,16 +3482,16 @@ }, { "name": "nikic/php-parser", - "version": "v5.3.1", + "version": "v5.4.0", "source": { "type": "git", "url": "https://github.com/nikic/PHP-Parser.git", - "reference": "8eea230464783aa9671db8eea6f8c6ac5285794b" + "reference": "447a020a1f875a434d62f2a401f53b82a396e494" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/8eea230464783aa9671db8eea6f8c6ac5285794b", - "reference": "8eea230464783aa9671db8eea6f8c6ac5285794b", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/447a020a1f875a434d62f2a401f53b82a396e494", + "reference": "447a020a1f875a434d62f2a401f53b82a396e494", "shasum": "" }, "require": { @@ -3534,9 +3534,9 @@ ], "support": { "issues": "https://github.com/nikic/PHP-Parser/issues", - "source": "https://github.com/nikic/PHP-Parser/tree/v5.3.1" + "source": "https://github.com/nikic/PHP-Parser/tree/v5.4.0" }, - "time": "2024-10-08T18:51:32+00:00" + "time": "2024-12-30T11:07:19+00:00" }, { "name": "nunomaduro/termwind", @@ -4700,16 +4700,16 @@ }, { "name": "spatie/laravel-package-tools", - "version": "1.17.0", + "version": "1.18.0", "source": { "type": "git", "url": "https://github.com/spatie/laravel-package-tools.git", - "reference": "9ab30fd24f677e5aa370ea4cf6b41c517d16cf85" + "reference": "8332205b90d17164913244f4a8e13ab7e6761d29" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/spatie/laravel-package-tools/zipball/9ab30fd24f677e5aa370ea4cf6b41c517d16cf85", - "reference": "9ab30fd24f677e5aa370ea4cf6b41c517d16cf85", + "url": "https://api.github.com/repos/spatie/laravel-package-tools/zipball/8332205b90d17164913244f4a8e13ab7e6761d29", + "reference": "8332205b90d17164913244f4a8e13ab7e6761d29", "shasum": "" }, "require": { @@ -4748,7 +4748,7 @@ ], "support": { "issues": "https://github.com/spatie/laravel-package-tools/issues", - "source": "https://github.com/spatie/laravel-package-tools/tree/1.17.0" + "source": "https://github.com/spatie/laravel-package-tools/tree/1.18.0" }, "funding": [ { @@ -4756,7 +4756,7 @@ "type": "github" } ], - "time": "2024-12-09T16:29:14+00:00" + "time": "2024-12-30T13:13:39+00:00" }, { "name": "symfony/clock", @@ -5009,12 +5009,12 @@ }, "type": "library", "extra": { + "thanks": { + "url": "https://github.com/symfony/contracts", + "name": "symfony/contracts" + }, "branch-alias": { "dev-main": "3.5-dev" - }, - "thanks": { - "name": "symfony/contracts", - "url": "https://github.com/symfony/contracts" } }, "autoload": { @@ -5232,12 +5232,12 @@ }, "type": "library", "extra": { + "thanks": { + "url": "https://github.com/symfony/contracts", + "name": "symfony/contracts" + }, "branch-alias": { "dev-main": "3.5-dev" - }, - "thanks": { - "name": "symfony/contracts", - "url": "https://github.com/symfony/contracts" } }, "autoload": { @@ -5290,16 +5290,16 @@ }, { "name": "symfony/finder", - "version": "v7.2.0", + "version": "v7.2.2", "source": { "type": "git", "url": "https://github.com/symfony/finder.git", - "reference": "6de263e5868b9a137602dd1e33e4d48bfae99c49" + "reference": "87a71856f2f56e4100373e92529eed3171695cfb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/6de263e5868b9a137602dd1e33e4d48bfae99c49", - "reference": "6de263e5868b9a137602dd1e33e4d48bfae99c49", + "url": "https://api.github.com/repos/symfony/finder/zipball/87a71856f2f56e4100373e92529eed3171695cfb", + "reference": "87a71856f2f56e4100373e92529eed3171695cfb", "shasum": "" }, "require": { @@ -5334,7 +5334,7 @@ "description": "Finds files and directories via an intuitive fluent interface", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/finder/tree/v7.2.0" + "source": "https://github.com/symfony/finder/tree/v7.2.2" }, "funding": [ { @@ -5350,20 +5350,20 @@ "type": "tidelift" } ], - "time": "2024-10-23T06:56:12+00:00" + "time": "2024-12-30T19:00:17+00:00" }, { "name": "symfony/http-foundation", - "version": "v7.2.0", + "version": "v7.2.2", "source": { "type": "git", "url": "https://github.com/symfony/http-foundation.git", - "reference": "e88a66c3997859532bc2ddd6dd8f35aba2711744" + "reference": "62d1a43796ca3fea3f83a8470dfe63a4af3bc588" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-foundation/zipball/e88a66c3997859532bc2ddd6dd8f35aba2711744", - "reference": "e88a66c3997859532bc2ddd6dd8f35aba2711744", + "url": "https://api.github.com/repos/symfony/http-foundation/zipball/62d1a43796ca3fea3f83a8470dfe63a4af3bc588", + "reference": "62d1a43796ca3fea3f83a8470dfe63a4af3bc588", "shasum": "" }, "require": { @@ -5412,7 +5412,7 @@ "description": "Defines an object-oriented layer for the HTTP specification", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/http-foundation/tree/v7.2.0" + "source": "https://github.com/symfony/http-foundation/tree/v7.2.2" }, "funding": [ { @@ -5428,20 +5428,20 @@ "type": "tidelift" } ], - "time": "2024-11-13T18:58:46+00:00" + "time": "2024-12-30T19:00:17+00:00" }, { "name": "symfony/http-kernel", - "version": "v7.2.1", + "version": "v7.2.2", "source": { "type": "git", "url": "https://github.com/symfony/http-kernel.git", - "reference": "d8ae58eecae44c8e66833e76cc50a4ad3c002d97" + "reference": "3c432966bd8c7ec7429663105f5a02d7e75b4306" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-kernel/zipball/d8ae58eecae44c8e66833e76cc50a4ad3c002d97", - "reference": "d8ae58eecae44c8e66833e76cc50a4ad3c002d97", + "url": "https://api.github.com/repos/symfony/http-kernel/zipball/3c432966bd8c7ec7429663105f5a02d7e75b4306", + "reference": "3c432966bd8c7ec7429663105f5a02d7e75b4306", "shasum": "" }, "require": { @@ -5526,7 +5526,7 @@ "description": "Provides a structured process for converting a Request into a Response", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/http-kernel/tree/v7.2.1" + "source": "https://github.com/symfony/http-kernel/tree/v7.2.2" }, "funding": [ { @@ -5542,7 +5542,7 @@ "type": "tidelift" } ], - "time": "2024-12-11T12:09:10+00:00" + "time": "2024-12-31T14:59:40+00:00" }, { "name": "symfony/mailer", @@ -6593,12 +6593,12 @@ }, "type": "library", "extra": { + "thanks": { + "url": "https://github.com/symfony/contracts", + "name": "symfony/contracts" + }, "branch-alias": { "dev-main": "3.5-dev" - }, - "thanks": { - "name": "symfony/contracts", - "url": "https://github.com/symfony/contracts" } }, "autoload": { @@ -6741,16 +6741,16 @@ }, { "name": "symfony/translation", - "version": "v7.2.0", + "version": "v7.2.2", "source": { "type": "git", "url": "https://github.com/symfony/translation.git", - "reference": "dc89e16b44048ceecc879054e5b7f38326ab6cc5" + "reference": "e2674a30132b7cc4d74540d6c2573aa363f05923" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/translation/zipball/dc89e16b44048ceecc879054e5b7f38326ab6cc5", - "reference": "dc89e16b44048ceecc879054e5b7f38326ab6cc5", + "url": "https://api.github.com/repos/symfony/translation/zipball/e2674a30132b7cc4d74540d6c2573aa363f05923", + "reference": "e2674a30132b7cc4d74540d6c2573aa363f05923", "shasum": "" }, "require": { @@ -6816,7 +6816,7 @@ "description": "Provides tools to internationalize your application", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/translation/tree/v7.2.0" + "source": "https://github.com/symfony/translation/tree/v7.2.2" }, "funding": [ { @@ -6832,7 +6832,7 @@ "type": "tidelift" } ], - "time": "2024-11-12T20:47:56+00:00" + "time": "2024-12-07T08:18:10+00:00" }, { "name": "symfony/translation-contracts", @@ -6853,12 +6853,12 @@ }, "type": "library", "extra": { + "thanks": { + "url": "https://github.com/symfony/contracts", + "name": "symfony/contracts" + }, "branch-alias": { "dev-main": "3.5-dev" - }, - "thanks": { - "name": "symfony/contracts", - "url": "https://github.com/symfony/contracts" } }, "autoload": { @@ -7344,16 +7344,16 @@ "packages-dev": [ { "name": "archtechx/enums", - "version": "v1.1.0", + "version": "v1.1.1", "source": { "type": "git", "url": "https://github.com/archtechx/enums.git", - "reference": "37326d5e26cdfcc2810f4664cdd625ea4fd528d7" + "reference": "27d0405b983b14a2ee90621c4034eeb6010c0a0c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/archtechx/enums/zipball/37326d5e26cdfcc2810f4664cdd625ea4fd528d7", - "reference": "37326d5e26cdfcc2810f4664cdd625ea4fd528d7", + "url": "https://api.github.com/repos/archtechx/enums/zipball/27d0405b983b14a2ee90621c4034eeb6010c0a0c", + "reference": "27d0405b983b14a2ee90621c4034eeb6010c0a0c", "shasum": "" }, "require": { @@ -7384,9 +7384,9 @@ "description": "Helpers for making PHP enums more lovable.", "support": { "issues": "https://github.com/archtechx/enums/issues", - "source": "https://github.com/archtechx/enums/tree/v1.1.0" + "source": "https://github.com/archtechx/enums/tree/v1.1.1" }, - "time": "2024-07-15T14:28:34+00:00" + "time": "2024-10-29T15:38:32+00:00" }, { "name": "barryvdh/laravel-debugbar", @@ -7474,20 +7474,20 @@ }, { "name": "barryvdh/laravel-ide-helper", - "version": "v3.3.0", + "version": "v3.4.0", "source": { "type": "git", "url": "https://github.com/barryvdh/laravel-ide-helper.git", - "reference": "b7675670f75914bf34afdea52a6c2fe3781f7c44" + "reference": "2a41415f01bf3c409d200f6cdd940c1e7d86cfd3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/barryvdh/laravel-ide-helper/zipball/b7675670f75914bf34afdea52a6c2fe3781f7c44", - "reference": "b7675670f75914bf34afdea52a6c2fe3781f7c44", + "url": "https://api.github.com/repos/barryvdh/laravel-ide-helper/zipball/2a41415f01bf3c409d200f6cdd940c1e7d86cfd3", + "reference": "2a41415f01bf3c409d200f6cdd940c1e7d86cfd3", "shasum": "" }, "require": { - "barryvdh/reflection-docblock": "^2.1.2", + "barryvdh/reflection-docblock": "^2.2", "composer/class-map-generator": "^1.0", "ext-json": "*", "illuminate/console": "^11.15", @@ -7520,7 +7520,7 @@ ] }, "branch-alias": { - "dev-master": "3.2-dev" + "dev-master": "3.4-dev" } }, "autoload": { @@ -7552,7 +7552,7 @@ ], "support": { "issues": "https://github.com/barryvdh/laravel-ide-helper/issues", - "source": "https://github.com/barryvdh/laravel-ide-helper/tree/v3.3.0" + "source": "https://github.com/barryvdh/laravel-ide-helper/tree/v3.4.0" }, "funding": [ { @@ -7564,24 +7564,24 @@ "type": "github" } ], - "time": "2024-12-18T08:24:19+00:00" + "time": "2024-12-29T12:10:58+00:00" }, { "name": "barryvdh/reflection-docblock", - "version": "v2.1.3", + "version": "v2.3.0", "source": { "type": "git", "url": "https://github.com/barryvdh/ReflectionDocBlock.git", - "reference": "c6fad15f7c878be21650c51e1f841bca7e49752e" + "reference": "818be8de6af4d16ef3ad51ea9234b3d37026ee5f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/barryvdh/ReflectionDocBlock/zipball/c6fad15f7c878be21650c51e1f841bca7e49752e", - "reference": "c6fad15f7c878be21650c51e1f841bca7e49752e", + "url": "https://api.github.com/repos/barryvdh/ReflectionDocBlock/zipball/818be8de6af4d16ef3ad51ea9234b3d37026ee5f", + "reference": "818be8de6af4d16ef3ad51ea9234b3d37026ee5f", "shasum": "" }, "require": { - "php": ">=5.3.3" + "php": ">=7.1" }, "require-dev": { "phpunit/phpunit": "^8.5.14|^9" @@ -7593,7 +7593,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "2.0.x-dev" + "dev-master": "2.3.x-dev" } }, "autoload": { @@ -7614,9 +7614,9 @@ } ], "support": { - "source": "https://github.com/barryvdh/ReflectionDocBlock/tree/v2.1.3" + "source": "https://github.com/barryvdh/ReflectionDocBlock/tree/v2.3.0" }, - "time": "2024-10-23T11:41:03+00:00" + "time": "2024-12-30T10:35:04+00:00" }, { "name": "brianium/paratest", @@ -8675,16 +8675,16 @@ }, { "name": "laravel-lang/actions", - "version": "1.8.9", + "version": "1.8.10", "source": { "type": "git", "url": "https://github.com/Laravel-Lang/actions.git", - "reference": "3c31470bed4c28a5d8cfd062f59c0bf1bae12147" + "reference": "53a6c9523e4cecbc7b822abb98bc88d3637bbd6f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Laravel-Lang/actions/zipball/3c31470bed4c28a5d8cfd062f59c0bf1bae12147", - "reference": "3c31470bed4c28a5d8cfd062f59c0bf1bae12147", + "url": "https://api.github.com/repos/Laravel-Lang/actions/zipball/53a6c9523e4cecbc7b822abb98bc88d3637bbd6f", + "reference": "53a6c9523e4cecbc7b822abb98bc88d3637bbd6f", "shasum": "" }, "require": { @@ -8736,22 +8736,22 @@ ], "support": { "issues": "https://github.com/Laravel-Lang/actions/issues", - "source": "https://github.com/Laravel-Lang/actions/tree/1.8.9" + "source": "https://github.com/Laravel-Lang/actions/tree/1.8.10" }, - "time": "2024-12-10T14:48:08+00:00" + "time": "2024-12-31T10:59:30+00:00" }, { "name": "laravel-lang/attributes", - "version": "2.11.2", + "version": "2.11.3", "source": { "type": "git", "url": "https://github.com/Laravel-Lang/attributes.git", - "reference": "0e22b2a56004b53599d4162cb84ff9ec41e915c3" + "reference": "91b121541f27df5379c71bfe645fb4186dc99c9c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Laravel-Lang/attributes/zipball/0e22b2a56004b53599d4162cb84ff9ec41e915c3", - "reference": "0e22b2a56004b53599d4162cb84ff9ec41e915c3", + "url": "https://api.github.com/repos/Laravel-Lang/attributes/zipball/91b121541f27df5379c71bfe645fb4186dc99c9c", + "reference": "91b121541f27df5379c71bfe645fb4186dc99c9c", "shasum": "" }, "require": { @@ -8805,9 +8805,9 @@ ], "support": { "issues": "https://github.com/Laravel-Lang/attributes/issues", - "source": "https://github.com/Laravel-Lang/attributes/tree/2.11.2" + "source": "https://github.com/Laravel-Lang/attributes/tree/2.11.3" }, - "time": "2024-12-10T14:47:32+00:00" + "time": "2024-12-31T11:00:18+00:00" }, { "name": "laravel-lang/common", @@ -9088,16 +9088,16 @@ }, { "name": "laravel-lang/lang", - "version": "15.11.0", + "version": "15.11.6", "source": { "type": "git", "url": "https://github.com/Laravel-Lang/lang.git", - "reference": "f17c429b3db9c613efa424494de2249abfa7a2a4" + "reference": "0937695ccc9cb1efb22164253d4ab51ebedf0a56" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Laravel-Lang/lang/zipball/f17c429b3db9c613efa424494de2249abfa7a2a4", - "reference": "f17c429b3db9c613efa424494de2249abfa7a2a4", + "url": "https://api.github.com/repos/Laravel-Lang/lang/zipball/0937695ccc9cb1efb22164253d4ab51ebedf0a56", + "reference": "0937695ccc9cb1efb22164253d4ab51ebedf0a56", "shasum": "" }, "require": { @@ -9147,7 +9147,7 @@ "issues": "https://github.com/Laravel-Lang/lang/issues", "source": "https://github.com/Laravel-Lang/lang" }, - "time": "2024-12-23T20:17:50+00:00" + "time": "2025-01-01T14:21:28+00:00" }, { "name": "laravel-lang/locale-list", @@ -9885,16 +9885,16 @@ }, { "name": "laravel/pint", - "version": "v1.18.3", + "version": "v1.19.0", "source": { "type": "git", "url": "https://github.com/laravel/pint.git", - "reference": "cef51821608239040ab841ad6e1c6ae502ae3026" + "reference": "8169513746e1bac70c85d6ea1524d9225d4886f0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/pint/zipball/cef51821608239040ab841ad6e1c6ae502ae3026", - "reference": "cef51821608239040ab841ad6e1c6ae502ae3026", + "url": "https://api.github.com/repos/laravel/pint/zipball/8169513746e1bac70c85d6ea1524d9225d4886f0", + "reference": "8169513746e1bac70c85d6ea1524d9225d4886f0", "shasum": "" }, "require": { @@ -9905,10 +9905,10 @@ "php": "^8.1.0" }, "require-dev": { - "friendsofphp/php-cs-fixer": "^3.65.0", - "illuminate/view": "^10.48.24", - "larastan/larastan": "^2.9.11", - "laravel-zero/framework": "^10.4.0", + "friendsofphp/php-cs-fixer": "^3.66.0", + "illuminate/view": "^10.48.25", + "larastan/larastan": "^2.9.12", + "laravel-zero/framework": "^10.48.25", "mockery/mockery": "^1.6.12", "nunomaduro/termwind": "^1.17.0", "pestphp/pest": "^2.36.0" @@ -9947,7 +9947,7 @@ "issues": "https://github.com/laravel/pint/issues", "source": "https://github.com/laravel/pint" }, - "time": "2024-11-26T15:34:00+00:00" + "time": "2024-12-30T16:20:10+00:00" }, { "name": "maximebf/debugbar", @@ -11215,16 +11215,16 @@ }, { "name": "phpstan/phpstan", - "version": "2.0.4", + "version": "2.1.0", "source": { "type": "git", "url": "https://github.com/phpstan/phpstan.git", - "reference": "50d276fc3bf1430ec315f2f109bbde2769821524" + "reference": "2392d360fdf54ea253aa6c68cad1d4ba2e54e927" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan/zipball/50d276fc3bf1430ec315f2f109bbde2769821524", - "reference": "50d276fc3bf1430ec315f2f109bbde2769821524", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/2392d360fdf54ea253aa6c68cad1d4ba2e54e927", + "reference": "2392d360fdf54ea253aa6c68cad1d4ba2e54e927", "shasum": "" }, "require": { @@ -11269,7 +11269,7 @@ "type": "github" } ], - "time": "2024-12-17T17:14:01+00:00" + "time": "2024-12-31T07:30:03+00:00" }, { "name": "phpunit/php-code-coverage", diff --git a/resources/css/app.css b/resources/css/app.css index 0e027f47..79448a90 100644 --- a/resources/css/app.css +++ b/resources/css/app.css @@ -25,8 +25,6 @@ prose-figure:table prose-figure:mx-auto /* image */ prose-img:w-full prose-img:rounded-xl - /* figure */ - prose-figure:w-full /* figcaption */ prose-figcaption:table-caption prose-figcaption:[caption-side:bottom] prose-figcaption:break-words prose-figcaption:rounded-lg prose-figcaption:p-1.5 prose-figcaption:text-center prose-figcaption:bg-slate-200 diff --git a/resources/ts/ckeditor/ckeditor.ts b/resources/ts/ckeditor/ckeditor.ts index 517fae4f..01d2f5c0 100644 --- a/resources/ts/ckeditor/ckeditor.ts +++ b/resources/ts/ckeditor/ckeditor.ts @@ -55,6 +55,7 @@ ClassicEditor.builtinPlugins = [ Heading, Image, ImageCaption, + ImageResize, ImageStyle, ImageToolbar, ImageUpload, @@ -73,7 +74,6 @@ ClassicEditor.builtinPlugins = [ IndentBlock, Code, Alignment, - ImageResize, CodeBlock, Underline, Strikethrough, @@ -145,7 +145,24 @@ ClassicEditor.defaultConfig = { addTargetToExternalLinks: true, }, image: { - toolbar: ['toggleImageCaption', 'imageTextAlternative'], + resizeOptions: [ + { + name: 'resizeImage:original', + value: null, + icon: 'original', + }, + { + name: 'resizeImage:50', + value: '50', + icon: 'medium', + }, + { + name: 'resizeImage:75', + value: '75', + icon: 'large', + }, + ], + toolbar: ['toggleImageCaption', 'imageTextAlternative', 'resizeImage'], }, table: { contentToolbar: ['tableColumn', 'tableRow', 'mergeTableCells'],