download odds
This commit is contained in:
1 parent
b60e7c2f99
commit
483b5e1abe
5 files changed
+347
-2
No files matched your search
@@ -0,0 +1,51 @@
|
||||
<?php
|
||||
|
||||
namespace App\Exports;
|
||||
|
||||
use Maatwebsite\Excel\Concerns\FromArray;
|
||||
use Maatwebsite\Excel\Concerns\WithHeadings;
|
||||
|
||||
class OddsExporter implements FromArray, WithHeadings
|
||||
{
|
||||
protected array $data;
|
||||
|
||||
public function __construct(array $data)
|
||||
{
|
||||
$this->data = $data;
|
||||
}
|
||||
|
||||
// Übergibt die flachen Zeilendaten an Excel
|
||||
public function array(): array
|
||||
{
|
||||
return $this->data;
|
||||
}
|
||||
|
||||
// Definiert die Kopfzeile im Excel-Sheet
|
||||
public function headings(): array
|
||||
{
|
||||
return [
|
||||
'Match Id',
|
||||
'BetsApi Id',
|
||||
'Betradar Id',
|
||||
'Bet365 Id',
|
||||
'Starttime',
|
||||
'Sport Id',
|
||||
'Group Id',
|
||||
'Group',
|
||||
'Home Id',
|
||||
'Home',
|
||||
'Away Id',
|
||||
'Away',
|
||||
'Book Id',
|
||||
'Book',
|
||||
'One',
|
||||
'X',
|
||||
'Two',
|
||||
'Book Id To',
|
||||
'Book To',
|
||||
'Over',
|
||||
'Under',
|
||||
'Total',
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user