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')); $so = Service::findOrFail($this->argument('service'));
// @todo TO get from DB Mail::to(config('osb.ticket_admin'))
Mail::to('help@graytech.net.au')->sendNow(new OrderRequestApprove($so)); ->sendNow(new OrderRequestApprove($so));
if (Mail::failures()) { if (Mail::failures()) {
dump('Failure?'); dump('Failure?');

View File

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

View File

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