Files
investbrain/app/Imports/BackupImport.php
T

30 lines
737 B
PHP
Raw Normal View History

2024-08-07 18:29:23 -05:00
<?php
namespace App\Imports;
use App\Imports\Sheets\SplitsSheet;
use App\Imports\Sheets\DividendsSheet;
use App\Imports\Sheets\DailyChangesSheet;
use App\Imports\Sheets\MarketDataSheet;
use App\Imports\Sheets\PortfoliosSheet;
use App\Imports\Sheets\TransactionsSheet;
use Maatwebsite\Excel\Concerns\Importable;
use Maatwebsite\Excel\Concerns\WithMultipleSheets;
class BackupImport implements WithMultipleSheets
{
use Importable;
public function sheets(): array
{
return [
'Portfolios' => new PortfoliosSheet,
2024-08-28 22:06:47 -05:00
'Transactions' => new TransactionsSheet,
2024-08-29 21:39:59 -05:00
'Daily Changes' => new DailyChangesSheet,
2024-08-07 18:29:23 -05:00
];
2024-08-28 22:06:47 -05:00
// Can listen for AfterSheet to run clean up afterwards
2024-08-07 18:29:23 -05:00
}
}