This commit is contained in:
2023-03-08 09:16:04 +08:00
commit e78454540f
1318 changed files with 210569 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
<?php
namespace Modules\Mall\Http\Exporter;
use Maatwebsite\Excel\Concerns\FromArray;
/**
* Class OrderFromArray
* 不再使用 2.x 版本的导出工具。3.x 版本对 laravel-admin 的兼容有些问题,无法直接使用关联模型
* @package Modules\Mall\Http\Exporter
*/
class OrderFromArray implements FromArray
{
protected array $order;
public function __construct(array $order)
{
$this->order = $order;
}
public function array(): array
{
return $this->order;
}
}