From c620af48630ae44ebf2ecd0d5eb4447686c22d90 Mon Sep 17 00:00:00 2001 From: Daniel Schmelz Date: Sun, 18 Jul 2021 10:34:30 +0200 Subject: [PATCH 1/4] Update php version --- composer.json | 2 +- composer.lock | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/composer.json b/composer.json index 6e2ee87..06fd020 100644 --- a/composer.json +++ b/composer.json @@ -5,7 +5,7 @@ "keywords": ["framework", "laravel"], "license": "MIT", "require": { - "php": "^7.3|^8.0", + "php": "^7.4|^8.0", "ext-exif": "*", "ext-gd": "*", "fakerphp/faker": "^1.9.1", diff --git a/composer.lock b/composer.lock index 7cf4dcc..a45e52f 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "669badae23389c95a5f7e1890b965ae9", + "content-hash": "8befbe90de3747237069d2dac4ca5e49", "packages": [ { "name": "asm89/stack-cors", @@ -7689,10 +7689,10 @@ "prefer-stable": true, "prefer-lowest": false, "platform": { - "php": "^7.3|^8.0", + "php": "^7.4|^8.0", "ext-exif": "*", "ext-gd": "*" }, "platform-dev": [], - "plugin-api-version": "2.0.0" + "plugin-api-version": "2.1.0" } From 80763bbe45a78bf325a5631598e78e6fb8ef811c Mon Sep 17 00:00:00 2001 From: Michael Job Date: Thu, 16 Sep 2021 15:34:56 +0200 Subject: [PATCH 2/4] Fix for issue 150 photo upload added .url() to line 77 as mentioned by https://github.com/barnoma-soz in comments for issue 150 - tested locally with current ping crm setup --- resources/js/Pages/Users/Edit.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/js/Pages/Users/Edit.vue b/resources/js/Pages/Users/Edit.vue index 68b6eeb..2152a31 100644 --- a/resources/js/Pages/Users/Edit.vue +++ b/resources/js/Pages/Users/Edit.vue @@ -74,7 +74,7 @@ export default { }, methods: { update() { - this.form.post(this.route('users.update', this.user.id), { + this.form.post(this.route('users.update', this.user.id).url(), { onSuccess: () => this.form.reset('password', 'photo'), }) }, From 5036ddb40148fc1cf83270a418a2b48de9acf611 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hilton=20Gon=C3=A7alves?= <137075+hiltongoncalves@users.noreply.github.com> Date: Sat, 9 Oct 2021 17:43:27 -0300 Subject: [PATCH 3/4] Fix url for create user with photo --- resources/js/Pages/Users/Create.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/js/Pages/Users/Create.vue b/resources/js/Pages/Users/Create.vue index f8920dd..633daeb 100644 --- a/resources/js/Pages/Users/Create.vue +++ b/resources/js/Pages/Users/Create.vue @@ -56,7 +56,7 @@ export default { }, methods: { store() { - this.form.post(this.route('users.store')) + this.form.post(this.route('users.store').url()) }, }, } From 3a758169506e0bcc1a77737815839c5be82748d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hilton=20Gon=C3=A7alves?= <137075+hiltongoncalves@users.noreply.github.com> Date: Sat, 9 Oct 2021 17:46:16 -0300 Subject: [PATCH 4/4] Fix user edit with upload photo --- resources/js/Pages/Users/Edit.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/js/Pages/Users/Edit.vue b/resources/js/Pages/Users/Edit.vue index 68b6eeb..2152a31 100644 --- a/resources/js/Pages/Users/Edit.vue +++ b/resources/js/Pages/Users/Edit.vue @@ -74,7 +74,7 @@ export default { }, methods: { update() { - this.form.post(this.route('users.update', this.user.id), { + this.form.post(this.route('users.update', this.user.id).url(), { onSuccess: () => this.form.reset('password', 'photo'), }) },