inital commit
This commit is contained in:
26
app/Exports/SafetyAndPrivacy/AllSheets.php
Normal file
26
app/Exports/SafetyAndPrivacy/AllSheets.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace App\Exports\SafetyAndPrivacy;
|
||||
|
||||
use Maatwebsite\Excel\Concerns\WithMultipleSheets;
|
||||
|
||||
class AllSheets implements WithMultipleSheets
|
||||
{
|
||||
public function __construct($id, $info_id, $step, $fromDate, $toDate, $province_id)
|
||||
{
|
||||
$this->id = $id;
|
||||
$this->info_id = $info_id;
|
||||
$this->step = $step;
|
||||
$this->fromDate = $fromDate;
|
||||
$this->toDate = $toDate;
|
||||
$this->province_id = $province_id;
|
||||
}
|
||||
public function sheets(): array
|
||||
{
|
||||
return [
|
||||
0 => new SafetyAndPrivacyExport($this->id, $this->info_id, $this->step, $this->fromDate,
|
||||
$this->toDate, $this->province_id),
|
||||
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user