mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-11 18:42:54 +00:00
25 lines
396 B
PHP
25 lines
396 B
PHP
<?php
|
|
|
|
namespace App\Module;
|
|
|
|
|
|
use Maatwebsite\Excel\Concerns\Exportable;
|
|
use Maatwebsite\Excel\Concerns\WithMultipleSheets;
|
|
|
|
class BillMultipleExport implements WithMultipleSheets
|
|
{
|
|
use Exportable;
|
|
|
|
protected $data = [];
|
|
|
|
public function __construct(array $data)
|
|
{
|
|
$this->data = $data;
|
|
}
|
|
|
|
public function sheets(): array
|
|
{
|
|
return $this->data;
|
|
}
|
|
}
|