Move traffic mismatch mail tempaltes to admin/service
This commit is contained in:
parent
78a8f63ac9
commit
2e9f87550c
@ -4,7 +4,6 @@ namespace App\Mail;
|
|||||||
|
|
||||||
use Carbon\Carbon;
|
use Carbon\Carbon;
|
||||||
use Illuminate\Bus\Queueable;
|
use Illuminate\Bus\Queueable;
|
||||||
use Illuminate\Contracts\Queue\ShouldQueue;
|
|
||||||
use Illuminate\Mail\Mailable;
|
use Illuminate\Mail\Mailable;
|
||||||
use Illuminate\Queue\SerializesModels;
|
use Illuminate\Queue\SerializesModels;
|
||||||
use Illuminate\Support\Facades\Config;
|
use Illuminate\Support\Facades\Config;
|
||||||
@ -36,10 +35,10 @@ class TrafficMismatch extends Mailable
|
|||||||
*/
|
*/
|
||||||
public function build()
|
public function build()
|
||||||
{
|
{
|
||||||
Config::set('site',$x=Site::find(1)); // @todo To auto determine;
|
Config::set('site',$x=Site::where('url',config('app.url'))->sole());
|
||||||
|
|
||||||
return $this
|
return $this
|
||||||
->markdown('mail.system.broadband_traffic_mismatch')
|
->markdown('mail.admin.service.traffic_mismatch')
|
||||||
->subject('Traffic Mismatch for '.$this->date)
|
->subject('Traffic Mismatch for '.$this->date)
|
||||||
->with([
|
->with([
|
||||||
'site'=>$x,
|
'site'=>$x,
|
||||||
|
Loading…
Reference in New Issue
Block a user