From 7a33e335d47508d7ee5684e5d6250627e5e33333 Mon Sep 17 00:00:00 2001 From: snipe Date: Tue, 21 Apr 2020 20:15:24 -0700 Subject: [PATCH] Fixes PSR autoloading issue --- app/Http/Controllers/ViewAssetsController.php | 6 +++--- ...DepartmentsTranformer.php => DepartmentsTransformer.php} | 0 app/Notifications/RequestAssetCancelation.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) rename app/Http/Transformers/{DepartmentsTranformer.php => DepartmentsTransformer.php} (100%) diff --git a/app/Http/Controllers/ViewAssetsController.php b/app/Http/Controllers/ViewAssetsController.php index 8e50de64c7..37bc95b590 100755 --- a/app/Http/Controllers/ViewAssetsController.php +++ b/app/Http/Controllers/ViewAssetsController.php @@ -7,7 +7,7 @@ use App\Models\AssetModel; use App\Models\Company; use App\Models\Setting; use App\Models\User; -use App\Notifications\RequestAssetCancelationNotification; +use App\Notifications\RequestAssetCancelation; use App\Notifications\RequestAssetNotification; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\Input; @@ -116,7 +116,7 @@ class ViewAssetsController extends Controller $logaction->logaction('request_canceled'); if (($settings->alert_email!='') && ($settings->alerts_enabled=='1') && (!config('app.lock_passwords'))) { - $settings->notify(new RequestAssetCancelationNotification($data)); + $settings->notify(new RequestAssetCancelation($data)); } return redirect()->route('requestable-assets')->with('success')->with('success', trans('admin/hardware/message.requests.canceled')); @@ -178,7 +178,7 @@ class ViewAssetsController extends Controller $asset->decrement('requests_counter', 1); $logaction->logaction('request canceled'); - $settings->notify(new RequestAssetCancelationNotification($data)); + $settings->notify(new RequestAssetCancelation($data)); return redirect()->route('requestable-assets') ->with('success')->with('success', trans('admin/hardware/message.requests.cancel-success')); } diff --git a/app/Http/Transformers/DepartmentsTranformer.php b/app/Http/Transformers/DepartmentsTransformer.php similarity index 100% rename from app/Http/Transformers/DepartmentsTranformer.php rename to app/Http/Transformers/DepartmentsTransformer.php diff --git a/app/Notifications/RequestAssetCancelation.php b/app/Notifications/RequestAssetCancelation.php index 3902f9af3b..21c565c632 100644 --- a/app/Notifications/RequestAssetCancelation.php +++ b/app/Notifications/RequestAssetCancelation.php @@ -7,7 +7,7 @@ use Illuminate\Notifications\Messages\MailMessage; use Illuminate\Notifications\Messages\SlackMessage; use Illuminate\Notifications\Notification; -class RequestAssetCancelationNotification extends Notification +class RequestAssetCancelation extends Notification { /** * @var