You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
300 B
PHTML

2 years ago
<?php
namespace App\Exports;
use Maatwebsite\Excel\Concerns\FromArray;
class ArrayExport implements FromArray
{
protected $data;
public function __construct(array $data)
{
$this->data = $data;
}
public function array(): array
{
return $this->data;
}
}