fix some problems

This commit is contained in:
mahdi purHosseini
2023-11-22 11:17:07 +03:30
parent bf5a279d45
commit d3c73e6c93
6 changed files with 153 additions and 26 deletions
+22
View File
@@ -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;
}
}