Get helpdesk email address from configuration
This commit is contained in:
parent
d5b5de3086
commit
a41a69676e
@ -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?');
|
||||||
|
@ -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')
|
||||||
|
@ -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');
|
||||||
|
Loading…
Reference in New Issue
Block a user