diff --git a/app/Console/Commands/OrderSend.php b/app/Console/Commands/OrderSend.php index e6fab57..e2b14a9 100644 --- a/app/Console/Commands/OrderSend.php +++ b/app/Console/Commands/OrderSend.php @@ -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?'); diff --git a/app/Http/Controllers/OrderController.php b/app/Http/Controllers/OrderController.php index 5c1191c..db152c2 100644 --- a/app/Http/Controllers/OrderController.php +++ b/app/Http/Controllers/OrderController.php @@ -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') diff --git a/app/Http/Controllers/ServiceController.php b/app/Http/Controllers/ServiceController.php index f73cca5..134e5e7 100644 --- a/app/Http/Controllers/ServiceController.php +++ b/app/Http/Controllers/ServiceController.php @@ -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');