Files
investbrain/app/Imports/BackupImport.php
T

41 lines
938 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\MarketDataSheet;
use App\Imports\Sheets\PortfoliosSheet;
2024-08-29 22:26:04 -05:00
use Maatwebsite\Excel\Events\AfterSheet;
use App\Imports\Sheets\DailyChangesSheet;
2024-08-07 18:29:23 -05:00
use App\Imports\Sheets\TransactionsSheet;
use Maatwebsite\Excel\Concerns\Importable;
2024-08-29 22:26:04 -05:00
use Maatwebsite\Excel\Concerns\WithEvents;
2024-08-07 18:29:23 -05:00
use Maatwebsite\Excel\Concerns\WithMultipleSheets;
2024-08-29 22:26:04 -05:00
class BackupImport implements WithMultipleSheets, WithEvents
2024-08-07 18:29:23 -05:00
{
use Importable;
2024-08-29 22:26:04 -05:00
/**
* @return array
*/
public function registerEvents(): array
{
return [
// AfterSheet::class => dd('test')
];
}
2024-08-07 18:29:23 -05:00
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
];
}
}