uawdijnntqw1x1x1
IP : 216.73.216.130
Hostname : it-staging-server
Kernel : Linux it-staging-server 5.15.0-131-generic #141-Ubuntu SMP Fri Jan 10 21:18:28 UTC 2025 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
home
/
forge
/
stage.herta-bht.smartcon-survey.com
/
app
/
Jobs
/
ExportTableVolume.php
/
/
<?php namespace App\Jobs; use App\Exports\TableVolume\TableVolumeExport; use App\Models\Country; use App\Models\User; use App\Notifications\TableVolumeExportedNotification; use Carbon\Carbon; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Foundation\Queue\Queueable; use Maatwebsite\Excel\Facades\Excel; class ExportTableVolume implements ShouldQueue { use Queueable; public int $tries = 3; public int $timeout = 900; /** * Create a new job instance. */ public function __construct( private readonly Country $country, private readonly User $user ) {} /** * Execute the job. */ public function handle(): void { $date = Carbon::now()->format('Y_m_d H_i_s'); $tableVolumeExport = new TableVolumeExport($this->country->id); $filename = "smc_wagbht - Tabellenband - {$this->country->name} - $date.xlsx"; Excel::store($tableVolumeExport, "table-volumes/$filename"); $this->user->notify(new TableVolumeExportedNotification($filename, $this->country->name)); } }
/home/forge/stage.herta-bht.smartcon-survey.com/app/Jobs/ExportTableVolume.php