🚧 Submit export shows to trakt
Still very messy
This commit is contained in:
parent
f33031ed8b
commit
50c49cd0ef
8 changed files with 1615 additions and 68 deletions
24
app/Data/WatchData.php
Normal file
24
app/Data/WatchData.php
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
<?php
|
||||
|
||||
namespace App\Data;
|
||||
|
||||
use App\Exceptions\Quit;
|
||||
use Spatie\LaravelData\Attributes\DataCollectionOf;
|
||||
use Spatie\LaravelData\DataCollection;
|
||||
use Spatie\LaravelData\DataPipeline;
|
||||
|
||||
class WatchData extends Data
|
||||
{
|
||||
#[DataCollectionOf(WatchExport::class)]
|
||||
public DataCollection $files;
|
||||
public array $rawData = [];
|
||||
public array $structuredData = [];
|
||||
|
||||
public static function pipeline(): DataPipeline
|
||||
{
|
||||
return parent::pipeline()
|
||||
->through(DataPipes\ReadExportFiles::class)
|
||||
->through(DataPipes\StructureData::class)
|
||||
;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue