mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-12 06:01:06 +03:30
fix some problems
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
<?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;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user