Move traffic mismatch mail tempaltes to admin/service
All checks were successful
Create Docker Image / Build Docker Image (x86_64) (push) Successful in 36s
Create Docker Image / Final Docker Image Manifest (push) Successful in 9s

This commit is contained in:
Deon George 2024-08-03 11:49:34 +10:00
parent 78a8f63ac9
commit 2e9f87550c
2 changed files with 2 additions and 3 deletions

View File

@ -4,7 +4,6 @@ namespace App\Mail;
use Carbon\Carbon;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
use Illuminate\Support\Facades\Config;
@ -36,10 +35,10 @@ class TrafficMismatch extends Mailable
*/
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
->markdown('mail.system.broadband_traffic_mismatch')
->markdown('mail.admin.service.traffic_mismatch')
->subject('Traffic Mismatch for '.$this->date)
->with([
'site'=>$x,