Get helpdesk email address from configuration
All checks were successful
Create Docker Image / Build Docker Image (x86_64) (push) Successful in 31s
Create Docker Image / Final Docker Image Manifest (push) Successful in 9s

This commit is contained in:
Deon George 2024-08-17 10:47:33 +10:00
parent d5b5de3086
commit a41a69676e
3 changed files with 4 additions and 5 deletions

View File

@ -43,8 +43,8 @@ class OrderSend extends Command
{
$so = Service::findOrFail($this->argument('service'));
// @todo TO get from DB
Mail::to('help@graytech.net.au')->sendNow(new OrderRequestApprove($so));
Mail::to(config('osb.ticket_admin'))
->sendNow(new OrderRequestApprove($so));
if (Mail::failures()) {
dump('Failure?');

View File

@ -104,7 +104,7 @@ class OrderController extends Controller
$ro = Rtm::where('parent_id',NULL)->sole();
Mail::to($ro->owner->email)
Mail::to(config('osb.ticket_admin'))
->queue((new OrderRequest($so,$request->input('options.notes') ?: ''))->onQueue('email')); //@todo Get email from DB.
return view('theme.frontend.metronic.order_received')

View File

@ -245,8 +245,7 @@ class ServiceController extends Controller
$o->order_status = 'CHANGE-REQUEST';
$o->save();
//@todo Get email from DB.
Mail::to('help@graytech.net.au')
Mail::to(config('osb.ticket_admin'))
->queue((new ChangeRequest($o,$request->notes))->onQueue('email'));
return redirect('u/service/'.$o->id)->with('success','Upgrade requested');