diff --git a/app/Traits/WithCustomLivewireException.php b/app/Traits/WithCustomLivewireException.php index e2ec748e..12983288 100755 --- a/app/Traits/WithCustomLivewireException.php +++ b/app/Traits/WithCustomLivewireException.php @@ -11,6 +11,10 @@ trait WithCustomLivewireException { public function exception($e, $stopPropagation) { + if (config('app.env') === 'local' || config('app.debug')) { + throw $e; // @phpstan-ignore-line + } + if ($e instanceof HttpException) { return; } diff --git a/composer.json b/composer.json index 0f2ad014..c06674cc 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "$schema": "https://getcomposer.org/schema.json", "name": "cyanfox/base", "type": "project", - "description": "A modular extendable Base System based on Laravel 11", + "description": "A modular extendable Base System based on Laravel 12", "keywords": [ "laravel", "cyanfox", @@ -18,6 +18,7 @@ "laravel/reverb": "^1.0", "laravel/tinker": "^2.9", "livewire/livewire": "^3.5", + "lorisleiva/laravel-actions": "^2.9", "mhmiton/laravel-modules-livewire": "^5.0", "nunomaduro/essentials": "^0.1", "nwidart/laravel-modules": "^12.0", diff --git a/composer.lock b/composer.lock index a1d7263e..c8712768 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": "71cb94efaf9224b1c73240f93478b2e8", + "content-hash": "88e0792d38560cf6c28aa9fc457df43c", "packages": [ { "name": "anourvalar/eloquent-serialize", @@ -3330,6 +3330,154 @@ ], "time": "2025-04-12T22:26:52+00:00" }, + { + "name": "lorisleiva/laravel-actions", + "version": "v2.9.0", + "source": { + "type": "git", + "url": "https://github.com/lorisleiva/laravel-actions.git", + "reference": "807f9cbd8fdb60713dfd9b2175861052f933c6e5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/lorisleiva/laravel-actions/zipball/807f9cbd8fdb60713dfd9b2175861052f933c6e5", + "reference": "807f9cbd8fdb60713dfd9b2175861052f933c6e5", + "shasum": "" + }, + "require": { + "illuminate/contracts": "^10.0|^11.0|^12.0", + "lorisleiva/lody": "^0.6", + "php": "^8.1" + }, + "require-dev": { + "orchestra/testbench": "^10.0", + "pestphp/pest": "^2.34|^3.0", + "phpunit/phpunit": "^10.5|^11.5" + }, + "type": "library", + "extra": { + "laravel": { + "aliases": { + "Action": "Lorisleiva\\Actions\\Facades\\Actions" + }, + "providers": [ + "Lorisleiva\\Actions\\ActionServiceProvider" + ] + } + }, + "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.9.0" + }, + "funding": [ + { + "url": "https://github.com/sponsors/lorisleiva", + "type": "github" + } + ], + "time": "2025-03-01T19:32:31+00:00" + }, + { + "name": "lorisleiva/lody", + "version": "v0.6.0", + "source": { + "type": "git", + "url": "https://github.com/lorisleiva/lody.git", + "reference": "6bada710ebc75f06fdf62db26327be1592c4f014" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/lorisleiva/lody/zipball/6bada710ebc75f06fdf62db26327be1592c4f014", + "reference": "6bada710ebc75f06fdf62db26327be1592c4f014", + "shasum": "" + }, + "require": { + "illuminate/contracts": "^10.0|^11.0|^12.0", + "php": "^8.1" + }, + "require-dev": { + "orchestra/testbench": "^10.0", + "pestphp/pest": "^2.34|^3.0", + "phpunit/phpunit": "^10.5|^11.5" + }, + "type": "library", + "extra": { + "laravel": { + "aliases": { + "Lody": "Lorisleiva\\Lody\\Lody" + }, + "providers": [ + "Lorisleiva\\Lody\\LodyServiceProvider" + ] + } + }, + "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.6.0" + }, + "funding": [ + { + "url": "https://github.com/sponsors/lorisleiva", + "type": "github" + } + ], + "time": "2025-03-01T19:21:17+00:00" + }, { "name": "masterminds/html5", "version": "2.9.0", diff --git a/version.json b/version.json index b25a51dc..4979cd4e 100755 --- a/version.json +++ b/version.json @@ -1,4 +1,4 @@ { - "base": "4.1.3", + "base": "4.2.0", "dev": false }