mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-11 01:01:07 +03:30
23 lines
312 B
PHP
23 lines
312 B
PHP
<?php
|
|
|
|
namespace App\Services;
|
|
|
|
use Maatwebsite\Excel\Concerns\FromCollection;
|
|
|
|
class ExportCollection implements FromCollection
|
|
{
|
|
|
|
protected $data;
|
|
|
|
public function __construct( $data)
|
|
{
|
|
$this->data = $data;
|
|
}
|
|
|
|
public function collection()
|
|
{
|
|
return $this->data;
|
|
}
|
|
|
|
}
|