mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 05:34:06 -08:00
Fixes PSR autoloading issue
This commit is contained in:
parent
bbc2ac2f9d
commit
7a33e335d4
|
@ -7,7 +7,7 @@ use App\Models\AssetModel;
|
||||||
use App\Models\Company;
|
use App\Models\Company;
|
||||||
use App\Models\Setting;
|
use App\Models\Setting;
|
||||||
use App\Models\User;
|
use App\Models\User;
|
||||||
use App\Notifications\RequestAssetCancelationNotification;
|
use App\Notifications\RequestAssetCancelation;
|
||||||
use App\Notifications\RequestAssetNotification;
|
use App\Notifications\RequestAssetNotification;
|
||||||
use Illuminate\Support\Facades\Auth;
|
use Illuminate\Support\Facades\Auth;
|
||||||
use Illuminate\Support\Facades\Input;
|
use Illuminate\Support\Facades\Input;
|
||||||
|
@ -116,7 +116,7 @@ class ViewAssetsController extends Controller
|
||||||
$logaction->logaction('request_canceled');
|
$logaction->logaction('request_canceled');
|
||||||
|
|
||||||
if (($settings->alert_email!='') && ($settings->alerts_enabled=='1') && (!config('app.lock_passwords'))) {
|
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'));
|
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);
|
$asset->decrement('requests_counter', 1);
|
||||||
|
|
||||||
$logaction->logaction('request canceled');
|
$logaction->logaction('request canceled');
|
||||||
$settings->notify(new RequestAssetCancelationNotification($data));
|
$settings->notify(new RequestAssetCancelation($data));
|
||||||
return redirect()->route('requestable-assets')
|
return redirect()->route('requestable-assets')
|
||||||
->with('success')->with('success', trans('admin/hardware/message.requests.cancel-success'));
|
->with('success')->with('success', trans('admin/hardware/message.requests.cancel-success'));
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,7 +7,7 @@ use Illuminate\Notifications\Messages\MailMessage;
|
||||||
use Illuminate\Notifications\Messages\SlackMessage;
|
use Illuminate\Notifications\Messages\SlackMessage;
|
||||||
use Illuminate\Notifications\Notification;
|
use Illuminate\Notifications\Notification;
|
||||||
|
|
||||||
class RequestAssetCancelationNotification extends Notification
|
class RequestAssetCancelation extends Notification
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @var
|
* @var
|
||||||
|
|
Loading…
Reference in a new issue