From 9f31b30c1c8c4c9026741b95b17716783ca14025 Mon Sep 17 00:00:00 2001 From: Nasrul Hazim Bin Mohamad Date: Fri, 1 Nov 2024 02:02:13 +0800 Subject: [PATCH] Upgrade --- app/Concerns/InteractsWithLivewireForm.php | 4 +- composer.lock | 161 ++++++++++++++++++++- 2 files changed, 157 insertions(+), 8 deletions(-) diff --git a/app/Concerns/InteractsWithLivewireForm.php b/app/Concerns/InteractsWithLivewireForm.php index c3b8b14..30503a2 100644 --- a/app/Concerns/InteractsWithLivewireForm.php +++ b/app/Concerns/InteractsWithLivewireForm.php @@ -81,7 +81,7 @@ public function save() $this->beforeSave(); } - $class = $this->getAction(); + $class = $this->getAction(); // @todo should we create an action contract? $action = (new $class($this->state)); @@ -97,7 +97,7 @@ public function save() $action->setProperty('hashFields', $this->getHashFieldsMapping()); } - $action->execute(); + $action->handle(); $this->record = $action->getRecord(); diff --git a/composer.lock b/composer.lock index f5e7c44..28f0a4c 100644 --- a/composer.lock +++ b/composer.lock @@ -580,22 +580,23 @@ }, { "name": "cleaniquecoders/laravel-action", - "version": "2.0.0", + "version": "2.1.0", "source": { "type": "git", "url": "https://github.com/cleaniquecoders/laravel-action.git", - "reference": "542faf851a9222206562b5f12e05c6d76975f4da" + "reference": "7d8ec74869c6f0a84680789a75d7871747483f4c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/cleaniquecoders/laravel-action/zipball/542faf851a9222206562b5f12e05c6d76975f4da", - "reference": "542faf851a9222206562b5f12e05c6d76975f4da", + "url": "https://api.github.com/repos/cleaniquecoders/laravel-action/zipball/7d8ec74869c6f0a84680789a75d7871747483f4c", + "reference": "7d8ec74869c6f0a84680789a75d7871747483f4c", "shasum": "" }, "require": { "cleaniquecoders/laravel-contract": "^1.0", "cleaniquecoders/traitify": "^1.0", "illuminate/contracts": "^10.0||^11.0", + "lorisleiva/laravel-actions": "^2.8", "php": "^8.2", "spatie/laravel-package-tools": "^1.16" }, @@ -648,9 +649,9 @@ ], "support": { "issues": "https://github.com/cleaniquecoders/laravel-action/issues", - "source": "https://github.com/cleaniquecoders/laravel-action/tree/2.0.0" + "source": "https://github.com/cleaniquecoders/laravel-action/tree/2.1.0" }, - "time": "2024-10-31T16:41:17+00:00" + "time": "2024-10-31T17:52:22+00:00" }, { "name": "cleaniquecoders/laravel-blacklist", @@ -3926,6 +3927,154 @@ ], "time": "2024-10-15T19:35:06+00:00" }, + { + "name": "lorisleiva/laravel-actions", + "version": "v2.8.4", + "source": { + "type": "git", + "url": "https://github.com/lorisleiva/laravel-actions.git", + "reference": "5a168bfdd3b75dd6ff259019d4aeef784bbd5403" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/lorisleiva/laravel-actions/zipball/5a168bfdd3b75dd6ff259019d4aeef784bbd5403", + "reference": "5a168bfdd3b75dd6ff259019d4aeef784bbd5403", + "shasum": "" + }, + "require": { + "illuminate/contracts": "^10.0|^11.0", + "lorisleiva/lody": "^0.5", + "php": "^8.1" + }, + "require-dev": { + "orchestra/testbench": "^8.0|^9.0", + "pestphp/pest": "^1.23|^2.34", + "phpunit/phpunit": "^9.6|^10.0" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Lorisleiva\\Actions\\ActionServiceProvider" + ], + "aliases": { + "Action": "Lorisleiva\\Actions\\Facades\\Actions" + } + } + }, + "autoload": { + "psr-4": { + "Lorisleiva\\Actions\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Loris Leiva", + "email": "loris.leiva@gmail.com", + "homepage": "https://lorisleiva.com", + "role": "Developer" + } + ], + "description": "Laravel components that take care of one specific task", + "homepage": "https://github.com/lorisleiva/laravel-actions", + "keywords": [ + "action", + "command", + "component", + "controller", + "job", + "laravel", + "listener", + "object" + ], + "support": { + "issues": "https://github.com/lorisleiva/laravel-actions/issues", + "source": "https://github.com/lorisleiva/laravel-actions/tree/v2.8.4" + }, + "funding": [ + { + "url": "https://github.com/sponsors/lorisleiva", + "type": "github" + } + ], + "time": "2024-09-10T09:57:29+00:00" + }, + { + "name": "lorisleiva/lody", + "version": "v0.5.0", + "source": { + "type": "git", + "url": "https://github.com/lorisleiva/lody.git", + "reference": "c2f51b070e99f3a240d66cf68ef1f232036917fe" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/lorisleiva/lody/zipball/c2f51b070e99f3a240d66cf68ef1f232036917fe", + "reference": "c2f51b070e99f3a240d66cf68ef1f232036917fe", + "shasum": "" + }, + "require": { + "illuminate/contracts": "^9.0|^10.0|^11.0", + "php": "^8.0" + }, + "require-dev": { + "orchestra/testbench": "^9.0", + "pestphp/pest": "^1.20|^2.34", + "phpunit/phpunit": "^9.5.10|^10.5" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Lorisleiva\\Lody\\LodyServiceProvider" + ], + "aliases": { + "Lody": "Lorisleiva\\Lody\\Lody" + } + } + }, + "autoload": { + "psr-4": { + "Lorisleiva\\Lody\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Loris Leiva", + "email": "loris.leiva@gmail.com", + "homepage": "https://lorisleiva.com", + "role": "Developer" + } + ], + "description": "Load files and classes as lazy collections in Laravel.", + "homepage": "https://github.com/lorisleiva/lody", + "keywords": [ + "classes", + "collection", + "files", + "laravel", + "load" + ], + "support": { + "issues": "https://github.com/lorisleiva/lody/issues", + "source": "https://github.com/lorisleiva/lody/tree/v0.5.0" + }, + "funding": [ + { + "url": "https://github.com/sponsors/lorisleiva", + "type": "github" + } + ], + "time": "2024-03-13T12:08:59+00:00" + }, { "name": "maennchen/zipstream-php", "version": "3.1.1",