update
parent
5a71b80854
commit
4388f93635
|
@ -0,0 +1,89 @@
|
|||
<?php
|
||||
|
||||
namespace App\Console\Commands;
|
||||
|
||||
use Illuminate\Console\Command;
|
||||
use Illuminate\Support\Facades\File;
|
||||
|
||||
class MakeRepository extends Command
|
||||
{
|
||||
protected $signature = 'make:repository {name}';
|
||||
protected $description = 'Create a new repository with interface';
|
||||
|
||||
public function handle()
|
||||
{
|
||||
$name = $this->argument('name');
|
||||
$interfaceName = "{$name}RepositoryInterface";
|
||||
$repositoryName = "{$name}Repository";
|
||||
|
||||
// Paths
|
||||
$interfacePath = app_path("Repositories/Contracts/{$interfaceName}.php");
|
||||
$repositoryPath = app_path("Repositories/Eloquent/{$repositoryName}.php");
|
||||
|
||||
// Make directories if not exist
|
||||
if (!File::exists(app_path('Repositories/Contracts'))) {
|
||||
File::makeDirectory(app_path('Repositories/Contracts'), 0755, true);
|
||||
}
|
||||
if (!File::exists(app_path('Repositories/Eloquent'))) {
|
||||
File::makeDirectory(app_path('Repositories/Eloquent'), 0755, true);
|
||||
}
|
||||
|
||||
// Interface stub
|
||||
$interfaceContent = "<?php
|
||||
|
||||
namespace App\Repositories\Contracts;
|
||||
|
||||
interface {$interfaceName}
|
||||
{
|
||||
public function getAll();
|
||||
public function findById(\$id);
|
||||
public function create(array \$data);
|
||||
public function update(\$id, array \$data);
|
||||
public function delete(\$id);
|
||||
}
|
||||
";
|
||||
File::put($interfacePath, $interfaceContent);
|
||||
|
||||
// Repository stub
|
||||
$repositoryContent = "<?php
|
||||
|
||||
namespace App\Repositories\Eloquent;
|
||||
|
||||
use App\Models\\{$name};
|
||||
use App\Repositories\Contracts\\{$interfaceName};
|
||||
|
||||
class {$repositoryName} implements {$interfaceName}
|
||||
{
|
||||
public function getAll()
|
||||
{
|
||||
return {$name}::all();
|
||||
}
|
||||
|
||||
public function findById(\$id)
|
||||
{
|
||||
return {$name}::findOrFail(\$id);
|
||||
}
|
||||
|
||||
public function create(array \$data)
|
||||
{
|
||||
return {$name}::create(\$data);
|
||||
}
|
||||
|
||||
public function update(\$id, array \$data)
|
||||
{
|
||||
\$model = {$name}::findOrFail(\$id);
|
||||
\$model->update(\$data);
|
||||
return \$model;
|
||||
}
|
||||
|
||||
public function delete(\$id)
|
||||
{
|
||||
\$model = {$name}::findOrFail(\$id);
|
||||
return \$model->delete();
|
||||
}
|
||||
}";
|
||||
File::put($repositoryPath, $repositoryContent);
|
||||
|
||||
$this->info("Repository & Interface for {$name} created successfully!");
|
||||
}
|
||||
}
|
|
@ -12,16 +12,19 @@ use App\Models\Master\Instansi;
|
|||
use App\Models\Master\Topik;
|
||||
use App\Models\Master\Template;
|
||||
use App\Models\Dataset;
|
||||
use App\Repositories\Eloquent\DatasetRepository;
|
||||
|
||||
class DatasetController extends Controller
|
||||
{
|
||||
protected $title = 'Dataset';
|
||||
protected $template = 'modules.opendata.dataset';
|
||||
protected $route = 'modules.opendata.dataset';
|
||||
protected $title = 'Dataset';
|
||||
protected $template = 'modules.opendata.dataset';
|
||||
protected $route = 'modules.opendata.dataset';
|
||||
private $datasetRepository;
|
||||
|
||||
public function __construct(DatasetRepository $datasetRepository){
|
||||
$this->repository = $datasetRepository;
|
||||
}
|
||||
|
||||
/**
|
||||
* Display a listing of the resource.
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
permission('is_read', $this->route, 'module',true);
|
||||
|
@ -129,120 +132,44 @@ class DatasetController extends Controller
|
|||
// dd(request()->all());
|
||||
try {
|
||||
$keyId = decode_id($request->secure_id);
|
||||
$data = [];
|
||||
$filePath = null;
|
||||
if(@$request->file){
|
||||
$file = $request->file('file');
|
||||
$path = $file->getRealPath();
|
||||
$spreadsheet = IOFactory::load($path);
|
||||
$sheet = $spreadsheet->getActiveSheet();
|
||||
$rows = $sheet->toArray();
|
||||
$header = $rows[4]; // Baris pertama sebagai header
|
||||
if (@$request->hasFile('file')) {
|
||||
$file = $request->file('file');
|
||||
$destinationPath = public_path('uploads/dataset');
|
||||
$current = Carbon::now()->format('Y/m/d');
|
||||
$path = $destinationPath . '/' . $current;
|
||||
$fileName = $file->getClientOriginalName();
|
||||
$fileMime = $file->getClientMimeType();
|
||||
$fileExtension = $file->getClientOriginalExtension();
|
||||
$fileSize = $file->getSize();
|
||||
if(($fileExtension != 'xls') && ($fileExtension != 'xlsx')){
|
||||
return redirect()->back()->with([
|
||||
'message' => 'Maaf File Harus Berupa xls,xlsx!',
|
||||
'type' => "error"
|
||||
]);
|
||||
}
|
||||
$newFilename = session('id').'_'.uniqid('file_') . '.' . $fileExtension;
|
||||
|
||||
if (!File::exists($path)) {
|
||||
File::isDirectory($path) or File::makeDirectory($path, 0777, true, true);
|
||||
}
|
||||
|
||||
$filePath = 'dataset/' . $current . '/' . $newFilename;
|
||||
$uploaded = $file->move($path, $newFilename);
|
||||
|
||||
|
||||
|
||||
for ($i = 5; $i < count($rows); $i++) {
|
||||
$row = $rows[$i];
|
||||
|
||||
// Skip baris kosong
|
||||
if (collect($row)->filter()->isEmpty()) continue;
|
||||
|
||||
$assoc = [];
|
||||
foreach ($header as $j => $columnName) {
|
||||
if($columnName != null){
|
||||
$assoc[strtolower(str_replace(' ','_',$columnName))] = $row[$j] ?? null;
|
||||
}
|
||||
}
|
||||
|
||||
$data[] = $assoc;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if(@$keyId){
|
||||
Validator::make($request->all(), [
|
||||
'name' => 'required',
|
||||
'instansi_id' => 'required',
|
||||
'template_id' => 'required',
|
||||
// 'template_default' => 'required',
|
||||
'publik' => 'required',
|
||||
'tags' => 'required',
|
||||
'topik' => 'required',
|
||||
])->validate();
|
||||
|
||||
$insert = Dataset::find($keyId);
|
||||
$insert->instansi_id = decode_id($request->instansi_id);
|
||||
$insert->template_id = decode_id($request->template_id);
|
||||
// $insert->template_default = $request->template_default;
|
||||
$insert->name = $request->name;
|
||||
$insert->publik = $request->publik;
|
||||
$insert->tags = json_encode($request->tags);
|
||||
if(@$request->hasFile('file')){
|
||||
$insert->data = json_encode($data);
|
||||
$insert->file = $filePath;
|
||||
}
|
||||
$insert->topik = json_encode($request->topik);
|
||||
$insert->deskripsi = $request->deskripsi;
|
||||
$insert->save();
|
||||
}else{
|
||||
// dd($request->all());
|
||||
Validator::make($request->all(), [
|
||||
// 'name' => 'required',
|
||||
// 'instansi_id' => 'required',
|
||||
// 'template_id' => 'required',
|
||||
// 'template_default' => 'required',
|
||||
// 'publik' => 'required',
|
||||
// 'tags' => 'required',
|
||||
// 'file' => 'required|file',
|
||||
// 'topik' => 'required',
|
||||
'name' => 'required',
|
||||
'instansi_id' => 'required',
|
||||
'template_id' => 'required',
|
||||
'publik' => 'required',
|
||||
'template_id' => 'required',
|
||||
])->validate();
|
||||
|
||||
|
||||
$insert = new Dataset;
|
||||
$insert->instansi_id = decode_id($request->instansi_id);
|
||||
$insert->template_id = decode_id($request->template_id);
|
||||
$insert->template_default = $request->template_default;
|
||||
$insert->tahun = $request->tahun;
|
||||
$insert->name = $request->name;
|
||||
$insert->publik = $request->publik;
|
||||
$insert->tags = json_encode($request->tags);
|
||||
$insert->data = json_encode($data);
|
||||
$insert->file = $filePath;
|
||||
$insert->topik = json_encode($request->topik);
|
||||
$insert->deskripsi = $request->deskripsi;
|
||||
$insert->created_by = auth()->user()->id;
|
||||
$insert->save();
|
||||
}
|
||||
|
||||
return redirect()->back()->with([
|
||||
$template = Template::find(decode_id($request->template_id));
|
||||
$filename = pathinfo($template->template_url, PATHINFO_FILENAME);
|
||||
$modelClass = "App\\Models\\Dataset\\Dataset" . ucfirst($filename);
|
||||
$importClass = "App\\Imports\\Dataset". ucfirst($filename)."Import";
|
||||
|
||||
try {
|
||||
$insert = $this->repository->createDatasetTable($modelClass,$importClass,$request->file('file'),$request->all());
|
||||
return redirect()->back()->with([
|
||||
'message' => 'Berhasil update data',
|
||||
'type' => 'success',
|
||||
]);
|
||||
} catch (\Exception $e) {
|
||||
return redirect()->back()->with([
|
||||
'message' => $e->getMessage(),
|
||||
'type' => "error"
|
||||
]);
|
||||
}
|
||||
|
||||
} catch (Exception $e) {
|
||||
return redirect()->back()->with([
|
||||
'message' => $e->getMessage(),
|
||||
|
|
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
|
||||
namespace App\Imports;
|
||||
|
||||
use App\Models\Dataset\DatasetTable10;
|
||||
use Maatwebsite\Excel\Concerns\ToModel;
|
||||
use Maatwebsite\Excel\Concerns\WithStartRow;
|
||||
|
||||
class DatasetTable10Import implements ToModel,WithStartRow
|
||||
{
|
||||
/**
|
||||
* @param array $row
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Model|null
|
||||
*/
|
||||
protected $datasetId;
|
||||
protected $userId;
|
||||
|
||||
public function __construct($datasetId,$userId)
|
||||
{
|
||||
$this->datasetId = $datasetId;
|
||||
$this->userId = $userId;
|
||||
}
|
||||
|
||||
public function startRow(): int
|
||||
{
|
||||
return 6;
|
||||
}
|
||||
|
||||
public function model(array $row)
|
||||
{
|
||||
return new DatasetTable10([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
]);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
|
||||
namespace App\Imports;
|
||||
|
||||
use App\Models\Dataset\DatasetTable11;
|
||||
use Maatwebsite\Excel\Concerns\ToModel;
|
||||
use Maatwebsite\Excel\Concerns\WithStartRow;
|
||||
|
||||
class DatasetTable11Import implements ToModel,WithStartRow
|
||||
{
|
||||
/**
|
||||
* @param array $row
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Model|null
|
||||
*/
|
||||
protected $datasetId;
|
||||
protected $userId;
|
||||
|
||||
public function __construct($datasetId,$userId)
|
||||
{
|
||||
$this->datasetId = $datasetId;
|
||||
$this->userId = $userId;
|
||||
}
|
||||
|
||||
public function startRow(): int
|
||||
{
|
||||
return 6;
|
||||
}
|
||||
|
||||
public function model(array $row)
|
||||
{
|
||||
return new DatasetTable11([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
]);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
|
||||
namespace App\Imports;
|
||||
|
||||
use App\Models\Dataset\DatasetTable12;
|
||||
use Maatwebsite\Excel\Concerns\ToModel;
|
||||
use Maatwebsite\Excel\Concerns\WithStartRow;
|
||||
|
||||
class DatasetTable12Import implements ToModel,WithStartRow
|
||||
{
|
||||
/**
|
||||
* @param array $row
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Model|null
|
||||
*/
|
||||
protected $datasetId;
|
||||
protected $userId;
|
||||
|
||||
public function __construct($datasetId,$userId)
|
||||
{
|
||||
$this->datasetId = $datasetId;
|
||||
$this->userId = $userId;
|
||||
}
|
||||
|
||||
public function startRow(): int
|
||||
{
|
||||
return 6;
|
||||
}
|
||||
|
||||
public function model(array $row)
|
||||
{
|
||||
return new DatasetTable12([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
]);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
|
||||
namespace App\Imports;
|
||||
|
||||
use App\Models\Dataset\DatasetTable13;
|
||||
use Maatwebsite\Excel\Concerns\ToModel;
|
||||
use Maatwebsite\Excel\Concerns\WithStartRow;
|
||||
|
||||
class DatasetTable13Import implements ToModel,WithStartRow
|
||||
{
|
||||
/**
|
||||
* @param array $row
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Model|null
|
||||
*/
|
||||
protected $datasetId;
|
||||
protected $userId;
|
||||
|
||||
public function __construct($datasetId,$userId)
|
||||
{
|
||||
$this->datasetId = $datasetId;
|
||||
$this->userId = $userId;
|
||||
}
|
||||
|
||||
public function startRow(): int
|
||||
{
|
||||
return 6;
|
||||
}
|
||||
|
||||
public function model(array $row)
|
||||
{
|
||||
return new DatasetTable13([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
]);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
|
||||
namespace App\Imports;
|
||||
|
||||
use App\Models\Dataset\DatasetTable14;
|
||||
use Maatwebsite\Excel\Concerns\ToModel;
|
||||
use Maatwebsite\Excel\Concerns\WithStartRow;
|
||||
|
||||
class DatasetTable14Import implements ToModel,WithStartRow
|
||||
{
|
||||
/**
|
||||
* @param array $row
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Model|null
|
||||
*/
|
||||
protected $datasetId;
|
||||
protected $userId;
|
||||
|
||||
public function __construct($datasetId,$userId)
|
||||
{
|
||||
$this->datasetId = $datasetId;
|
||||
$this->userId = $userId;
|
||||
}
|
||||
|
||||
public function startRow(): int
|
||||
{
|
||||
return 6;
|
||||
}
|
||||
|
||||
public function model(array $row)
|
||||
{
|
||||
return new DatasetTable14([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
]);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
|
||||
namespace App\Imports;
|
||||
|
||||
use App\Models\Dataset\DatasetTable15;
|
||||
use Maatwebsite\Excel\Concerns\ToModel;
|
||||
use Maatwebsite\Excel\Concerns\WithStartRow;
|
||||
|
||||
class DatasetTable15Import implements ToModel,WithStartRow
|
||||
{
|
||||
/**
|
||||
* @param array $row
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Model|null
|
||||
*/
|
||||
protected $datasetId;
|
||||
protected $userId;
|
||||
|
||||
public function __construct($datasetId,$userId)
|
||||
{
|
||||
$this->datasetId = $datasetId;
|
||||
$this->userId = $userId;
|
||||
}
|
||||
|
||||
public function startRow(): int
|
||||
{
|
||||
return 6;
|
||||
}
|
||||
|
||||
public function model(array $row)
|
||||
{
|
||||
return new DatasetTable15([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
]);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
|
||||
namespace App\Imports;
|
||||
|
||||
use App\Models\Dataset\DatasetTable16;
|
||||
use Maatwebsite\Excel\Concerns\ToModel;
|
||||
use Maatwebsite\Excel\Concerns\WithStartRow;
|
||||
|
||||
class DatasetTable16Import implements ToModel,WithStartRow
|
||||
{
|
||||
/**
|
||||
* @param array $row
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Model|null
|
||||
*/
|
||||
protected $datasetId;
|
||||
protected $userId;
|
||||
|
||||
public function __construct($datasetId,$userId)
|
||||
{
|
||||
$this->datasetId = $datasetId;
|
||||
$this->userId = $userId;
|
||||
}
|
||||
|
||||
public function startRow(): int
|
||||
{
|
||||
return 6;
|
||||
}
|
||||
|
||||
public function model(array $row)
|
||||
{
|
||||
return new DatasetTable16([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
]);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
|
||||
namespace App\Imports;
|
||||
|
||||
use App\Models\Dataset\DatasetTable17;
|
||||
use Maatwebsite\Excel\Concerns\ToModel;
|
||||
use Maatwebsite\Excel\Concerns\WithStartRow;
|
||||
|
||||
class DatasetTable17Import implements ToModel,WithStartRow
|
||||
{
|
||||
/**
|
||||
* @param array $row
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Model|null
|
||||
*/
|
||||
protected $datasetId;
|
||||
protected $userId;
|
||||
|
||||
public function __construct($datasetId,$userId)
|
||||
{
|
||||
$this->datasetId = $datasetId;
|
||||
$this->userId = $userId;
|
||||
}
|
||||
|
||||
public function startRow(): int
|
||||
{
|
||||
return 6;
|
||||
}
|
||||
|
||||
public function model(array $row)
|
||||
{
|
||||
return new DatasetTable17([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
]);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
|
||||
namespace App\Imports;
|
||||
|
||||
use App\Models\Dataset\DatasetTable18;
|
||||
use Maatwebsite\Excel\Concerns\ToModel;
|
||||
use Maatwebsite\Excel\Concerns\WithStartRow;
|
||||
|
||||
class DatasetTable18Import implements ToModel,WithStartRow
|
||||
{
|
||||
/**
|
||||
* @param array $row
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Model|null
|
||||
*/
|
||||
protected $datasetId;
|
||||
protected $userId;
|
||||
|
||||
public function __construct($datasetId,$userId)
|
||||
{
|
||||
$this->datasetId = $datasetId;
|
||||
$this->userId = $userId;
|
||||
}
|
||||
|
||||
public function startRow(): int
|
||||
{
|
||||
return 6;
|
||||
}
|
||||
|
||||
public function model(array $row)
|
||||
{
|
||||
return new DatasetTable18([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
]);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
|
||||
namespace App\Imports;
|
||||
|
||||
use App\Models\Dataset\DatasetTable19;
|
||||
use Maatwebsite\Excel\Concerns\ToModel;
|
||||
use Maatwebsite\Excel\Concerns\WithStartRow;
|
||||
|
||||
class DatasetTable19Import implements ToModel,WithStartRow
|
||||
{
|
||||
/**
|
||||
* @param array $row
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Model|null
|
||||
*/
|
||||
protected $datasetId;
|
||||
protected $userId;
|
||||
|
||||
public function __construct($datasetId,$userId)
|
||||
{
|
||||
$this->datasetId = $datasetId;
|
||||
$this->userId = $userId;
|
||||
}
|
||||
|
||||
public function startRow(): int
|
||||
{
|
||||
return 6;
|
||||
}
|
||||
|
||||
public function model(array $row)
|
||||
{
|
||||
return new DatasetTable19([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
]);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
|
||||
namespace App\Imports;
|
||||
|
||||
use App\Models\Dataset\DatasetTable1;
|
||||
use Maatwebsite\Excel\Concerns\ToModel;
|
||||
use Maatwebsite\Excel\Concerns\WithStartRow;
|
||||
|
||||
class DatasetTable1Import implements ToModel,WithStartRow
|
||||
{
|
||||
/**
|
||||
* @param array $row
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Model|null
|
||||
*/
|
||||
protected $datasetId;
|
||||
protected $userId;
|
||||
|
||||
public function __construct($datasetId,$userId)
|
||||
{
|
||||
$this->datasetId = $datasetId;
|
||||
$this->userId = $userId;
|
||||
}
|
||||
|
||||
public function startRow(): int
|
||||
{
|
||||
return 6;
|
||||
}
|
||||
|
||||
public function model(array $row)
|
||||
{
|
||||
return new DatasetTable1([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
]);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
|
||||
namespace App\Imports;
|
||||
|
||||
use App\Models\Dataset\DatasetTable21;
|
||||
use Maatwebsite\Excel\Concerns\ToModel;
|
||||
use Maatwebsite\Excel\Concerns\WithStartRow;
|
||||
|
||||
class DatasetTable21Import implements ToModel,WithStartRow
|
||||
{
|
||||
/**
|
||||
* @param array $row
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Model|null
|
||||
*/
|
||||
protected $datasetId;
|
||||
protected $userId;
|
||||
|
||||
public function __construct($datasetId,$userId)
|
||||
{
|
||||
$this->datasetId = $datasetId;
|
||||
$this->userId = $userId;
|
||||
}
|
||||
|
||||
public function startRow(): int
|
||||
{
|
||||
return 6;
|
||||
}
|
||||
|
||||
public function model(array $row)
|
||||
{
|
||||
return new DatasetTable21([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
]);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
|
||||
namespace App\Imports;
|
||||
|
||||
use App\Models\Dataset\DatasetTable22;
|
||||
use Maatwebsite\Excel\Concerns\ToModel;
|
||||
use Maatwebsite\Excel\Concerns\WithStartRow;
|
||||
|
||||
class DatasetTable22Import implements ToModel,WithStartRow
|
||||
{
|
||||
/**
|
||||
* @param array $row
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Model|null
|
||||
*/
|
||||
protected $datasetId;
|
||||
protected $userId;
|
||||
|
||||
public function __construct($datasetId,$userId)
|
||||
{
|
||||
$this->datasetId = $datasetId;
|
||||
$this->userId = $userId;
|
||||
}
|
||||
|
||||
public function startRow(): int
|
||||
{
|
||||
return 6;
|
||||
}
|
||||
|
||||
public function model(array $row)
|
||||
{
|
||||
return new DatasetTable22([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
]);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
|
||||
namespace App\Imports;
|
||||
|
||||
use App\Models\Dataset\DatasetTable23;
|
||||
use Maatwebsite\Excel\Concerns\ToModel;
|
||||
use Maatwebsite\Excel\Concerns\WithStartRow;
|
||||
|
||||
class DatasetTable23Import implements ToModel,WithStartRow
|
||||
{
|
||||
/**
|
||||
* @param array $row
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Model|null
|
||||
*/
|
||||
protected $datasetId;
|
||||
protected $userId;
|
||||
|
||||
public function __construct($datasetId,$userId)
|
||||
{
|
||||
$this->datasetId = $datasetId;
|
||||
$this->userId = $userId;
|
||||
}
|
||||
|
||||
public function startRow(): int
|
||||
{
|
||||
return 6;
|
||||
}
|
||||
|
||||
public function model(array $row)
|
||||
{
|
||||
return new DatasetTable23([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
]);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
|
||||
namespace App\Imports;
|
||||
|
||||
use App\Models\Dataset\DatasetTable24;
|
||||
use Maatwebsite\Excel\Concerns\ToModel;
|
||||
use Maatwebsite\Excel\Concerns\WithStartRow;
|
||||
|
||||
class DatasetTable24Import implements ToModel,WithStartRow
|
||||
{
|
||||
/**
|
||||
* @param array $row
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Model|null
|
||||
*/
|
||||
protected $datasetId;
|
||||
protected $userId;
|
||||
|
||||
public function __construct($datasetId,$userId)
|
||||
{
|
||||
$this->datasetId = $datasetId;
|
||||
$this->userId = $userId;
|
||||
}
|
||||
|
||||
public function startRow(): int
|
||||
{
|
||||
return 6;
|
||||
}
|
||||
|
||||
public function model(array $row)
|
||||
{
|
||||
return new DatasetTable24([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
]);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
|
||||
namespace App\Imports;
|
||||
|
||||
use App\Models\Dataset\DatasetTable25;
|
||||
use Maatwebsite\Excel\Concerns\ToModel;
|
||||
use Maatwebsite\Excel\Concerns\WithStartRow;
|
||||
|
||||
class DatasetTable25Import implements ToModel,WithStartRow
|
||||
{
|
||||
/**
|
||||
* @param array $row
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Model|null
|
||||
*/
|
||||
protected $datasetId;
|
||||
protected $userId;
|
||||
|
||||
public function __construct($datasetId,$userId)
|
||||
{
|
||||
$this->datasetId = $datasetId;
|
||||
$this->userId = $userId;
|
||||
}
|
||||
|
||||
public function startRow(): int
|
||||
{
|
||||
return 6;
|
||||
}
|
||||
|
||||
public function model(array $row)
|
||||
{
|
||||
return new DatasetTable25([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
]);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
|
||||
namespace App\Imports;
|
||||
|
||||
use App\Models\Dataset\DatasetTable26;
|
||||
use Maatwebsite\Excel\Concerns\ToModel;
|
||||
use Maatwebsite\Excel\Concerns\WithStartRow;
|
||||
|
||||
class DatasetTable26Import implements ToModel,WithStartRow
|
||||
{
|
||||
/**
|
||||
* @param array $row
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Model|null
|
||||
*/
|
||||
protected $datasetId;
|
||||
protected $userId;
|
||||
|
||||
public function __construct($datasetId,$userId)
|
||||
{
|
||||
$this->datasetId = $datasetId;
|
||||
$this->userId = $userId;
|
||||
}
|
||||
|
||||
public function startRow(): int
|
||||
{
|
||||
return 6;
|
||||
}
|
||||
|
||||
public function model(array $row)
|
||||
{
|
||||
return new DatasetTable26([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
]);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
|
||||
namespace App\Imports;
|
||||
|
||||
use App\Models\Dataset\DatasetTable27;
|
||||
use Maatwebsite\Excel\Concerns\ToModel;
|
||||
use Maatwebsite\Excel\Concerns\WithStartRow;
|
||||
|
||||
class DatasetTable27Import implements ToModel,WithStartRow
|
||||
{
|
||||
/**
|
||||
* @param array $row
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Model|null
|
||||
*/
|
||||
protected $datasetId;
|
||||
protected $userId;
|
||||
|
||||
public function __construct($datasetId,$userId)
|
||||
{
|
||||
$this->datasetId = $datasetId;
|
||||
$this->userId = $userId;
|
||||
}
|
||||
|
||||
public function startRow(): int
|
||||
{
|
||||
return 6;
|
||||
}
|
||||
|
||||
public function model(array $row)
|
||||
{
|
||||
return new DatasetTable27([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
]);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
|
||||
namespace App\Imports;
|
||||
|
||||
use App\Models\Dataset\DatasetTable28;
|
||||
use Maatwebsite\Excel\Concerns\ToModel;
|
||||
use Maatwebsite\Excel\Concerns\WithStartRow;
|
||||
|
||||
class DatasetTable28Import implements ToModel,WithStartRow
|
||||
{
|
||||
/**
|
||||
* @param array $row
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Model|null
|
||||
*/
|
||||
protected $datasetId;
|
||||
protected $userId;
|
||||
|
||||
public function __construct($datasetId,$userId)
|
||||
{
|
||||
$this->datasetId = $datasetId;
|
||||
$this->userId = $userId;
|
||||
}
|
||||
|
||||
public function startRow(): int
|
||||
{
|
||||
return 6;
|
||||
}
|
||||
|
||||
public function model(array $row)
|
||||
{
|
||||
return new DatasetTable28([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
]);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
|
||||
namespace App\Imports;
|
||||
|
||||
use App\Models\Dataset\DatasetTable29;
|
||||
use Maatwebsite\Excel\Concerns\ToModel;
|
||||
use Maatwebsite\Excel\Concerns\WithStartRow;
|
||||
|
||||
class DatasetTable29Import implements ToModel,WithStartRow
|
||||
{
|
||||
/**
|
||||
* @param array $row
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Model|null
|
||||
*/
|
||||
protected $datasetId;
|
||||
protected $userId;
|
||||
|
||||
public function __construct($datasetId,$userId)
|
||||
{
|
||||
$this->datasetId = $datasetId;
|
||||
$this->userId = $userId;
|
||||
}
|
||||
|
||||
public function startRow(): int
|
||||
{
|
||||
return 6;
|
||||
}
|
||||
|
||||
public function model(array $row)
|
||||
{
|
||||
return new DatasetTable29([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
]);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
|
||||
namespace App\Imports;
|
||||
|
||||
use App\Models\DatasetTable2;
|
||||
use Maatwebsite\Excel\Concerns\ToModel;
|
||||
use Maatwebsite\Excel\Concerns\WithStartRow;
|
||||
|
||||
class DatasetTable2Import implements ToModel,WithStartRow
|
||||
{
|
||||
/**
|
||||
* @param array $row
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Model|null
|
||||
*/
|
||||
protected $datasetId;
|
||||
protected $userId;
|
||||
|
||||
public function __construct($datasetId,$userId)
|
||||
{
|
||||
$this->datasetId = $datasetId;
|
||||
$this->userId = $userId;
|
||||
}
|
||||
|
||||
public function startRow(): int
|
||||
{
|
||||
return 6;
|
||||
}
|
||||
|
||||
public function model(array $row)
|
||||
{
|
||||
return new DatasetTable2([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
]);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
|
||||
namespace App\Imports;
|
||||
|
||||
use App\Models\Dataset\DatasetTable30;
|
||||
use Maatwebsite\Excel\Concerns\ToModel;
|
||||
use Maatwebsite\Excel\Concerns\WithStartRow;
|
||||
|
||||
class DatasetTable30Import implements ToModel,WithStartRow
|
||||
{
|
||||
/**
|
||||
* @param array $row
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Model|null
|
||||
*/
|
||||
protected $datasetId;
|
||||
protected $userId;
|
||||
|
||||
public function __construct($datasetId,$userId)
|
||||
{
|
||||
$this->datasetId = $datasetId;
|
||||
$this->userId = $userId;
|
||||
}
|
||||
|
||||
public function startRow(): int
|
||||
{
|
||||
return 6;
|
||||
}
|
||||
|
||||
public function model(array $row)
|
||||
{
|
||||
return new DatasetTable30([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
]);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
|
||||
namespace App\Imports;
|
||||
|
||||
use App\Models\Dataset\DatasetTable31;
|
||||
use Maatwebsite\Excel\Concerns\ToModel;
|
||||
use Maatwebsite\Excel\Concerns\WithStartRow;
|
||||
|
||||
class DatasetTable31Import implements ToModel,WithStartRow
|
||||
{
|
||||
/**
|
||||
* @param array $row
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Model|null
|
||||
*/
|
||||
protected $datasetId;
|
||||
protected $userId;
|
||||
|
||||
public function __construct($datasetId,$userId)
|
||||
{
|
||||
$this->datasetId = $datasetId;
|
||||
$this->userId = $userId;
|
||||
}
|
||||
|
||||
public function startRow(): int
|
||||
{
|
||||
return 6;
|
||||
}
|
||||
|
||||
public function model(array $row)
|
||||
{
|
||||
return new DatasetTable31([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
]);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
|
||||
namespace App\Imports;
|
||||
|
||||
use App\Models\Dataset\DatasetTable32;
|
||||
use Maatwebsite\Excel\Concerns\ToModel;
|
||||
use Maatwebsite\Excel\Concerns\WithStartRow;
|
||||
|
||||
class DatasetTable32Import implements ToModel,WithStartRow
|
||||
{
|
||||
/**
|
||||
* @param array $row
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Model|null
|
||||
*/
|
||||
protected $datasetId;
|
||||
protected $userId;
|
||||
|
||||
public function __construct($datasetId,$userId)
|
||||
{
|
||||
$this->datasetId = $datasetId;
|
||||
$this->userId = $userId;
|
||||
}
|
||||
|
||||
public function startRow(): int
|
||||
{
|
||||
return 6;
|
||||
}
|
||||
|
||||
public function model(array $row)
|
||||
{
|
||||
return new DatasetTable32([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
]);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
|
||||
namespace App\Imports;
|
||||
|
||||
use App\Models\Dataset\DatasetTable33;
|
||||
use Maatwebsite\Excel\Concerns\ToModel;
|
||||
use Maatwebsite\Excel\Concerns\WithStartRow;
|
||||
|
||||
class DatasetTable33Import implements ToModel,WithStartRow
|
||||
{
|
||||
/**
|
||||
* @param array $row
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Model|null
|
||||
*/
|
||||
protected $datasetId;
|
||||
protected $userId;
|
||||
|
||||
public function __construct($datasetId,$userId)
|
||||
{
|
||||
$this->datasetId = $datasetId;
|
||||
$this->userId = $userId;
|
||||
}
|
||||
|
||||
public function startRow(): int
|
||||
{
|
||||
return 6;
|
||||
}
|
||||
|
||||
public function model(array $row)
|
||||
{
|
||||
return new DatasetTable33([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
]);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
|
||||
namespace App\Imports;
|
||||
|
||||
use App\Models\Dataset\DatasetTable34;
|
||||
use Maatwebsite\Excel\Concerns\ToModel;
|
||||
use Maatwebsite\Excel\Concerns\WithStartRow;
|
||||
|
||||
class DatasetTable34Import implements ToModel,WithStartRow
|
||||
{
|
||||
/**
|
||||
* @param array $row
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Model|null
|
||||
*/
|
||||
protected $datasetId;
|
||||
protected $userId;
|
||||
|
||||
public function __construct($datasetId,$userId)
|
||||
{
|
||||
$this->datasetId = $datasetId;
|
||||
$this->userId = $userId;
|
||||
}
|
||||
|
||||
public function startRow(): int
|
||||
{
|
||||
return 6;
|
||||
}
|
||||
|
||||
public function model(array $row)
|
||||
{
|
||||
return new DatasetTable34([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
]);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
|
||||
namespace App\Imports;
|
||||
|
||||
use App\Models\Dataset\DatasetTable35;
|
||||
use Maatwebsite\Excel\Concerns\ToModel;
|
||||
use Maatwebsite\Excel\Concerns\WithStartRow;
|
||||
|
||||
class DatasetTable35Import implements ToModel,WithStartRow
|
||||
{
|
||||
/**
|
||||
* @param array $row
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Model|null
|
||||
*/
|
||||
protected $datasetId;
|
||||
protected $userId;
|
||||
|
||||
public function __construct($datasetId,$userId)
|
||||
{
|
||||
$this->datasetId = $datasetId;
|
||||
$this->userId = $userId;
|
||||
}
|
||||
|
||||
public function startRow(): int
|
||||
{
|
||||
return 6;
|
||||
}
|
||||
|
||||
public function model(array $row)
|
||||
{
|
||||
return new DatasetTable35([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
]);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
|
||||
namespace App\Imports;
|
||||
|
||||
use App\Models\Dataset\DatasetTable36;
|
||||
use Maatwebsite\Excel\Concerns\ToModel;
|
||||
use Maatwebsite\Excel\Concerns\WithStartRow;
|
||||
|
||||
class DatasetTable36Import implements ToModel,WithStartRow
|
||||
{
|
||||
/**
|
||||
* @param array $row
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Model|null
|
||||
*/
|
||||
protected $datasetId;
|
||||
protected $userId;
|
||||
|
||||
public function __construct($datasetId,$userId)
|
||||
{
|
||||
$this->datasetId = $datasetId;
|
||||
$this->userId = $userId;
|
||||
}
|
||||
|
||||
public function startRow(): int
|
||||
{
|
||||
return 6;
|
||||
}
|
||||
|
||||
public function model(array $row)
|
||||
{
|
||||
return new DatasetTable36([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
]);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
|
||||
namespace App\Imports;
|
||||
|
||||
use App\Models\Dataset\DatasetTable37;
|
||||
use Maatwebsite\Excel\Concerns\ToModel;
|
||||
use Maatwebsite\Excel\Concerns\WithStartRow;
|
||||
|
||||
class DatasetTable37Import implements ToModel,WithStartRow
|
||||
{
|
||||
/**
|
||||
* @param array $row
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Model|null
|
||||
*/
|
||||
protected $datasetId;
|
||||
protected $userId;
|
||||
|
||||
public function __construct($datasetId,$userId)
|
||||
{
|
||||
$this->datasetId = $datasetId;
|
||||
$this->userId = $userId;
|
||||
}
|
||||
|
||||
public function startRow(): int
|
||||
{
|
||||
return 6;
|
||||
}
|
||||
|
||||
public function model(array $row)
|
||||
{
|
||||
return new DatasetTable37([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
]);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
|
||||
namespace App\Imports;
|
||||
|
||||
use App\Models\Dataset\DatasetTable38;
|
||||
use Maatwebsite\Excel\Concerns\ToModel;
|
||||
use Maatwebsite\Excel\Concerns\WithStartRow;
|
||||
|
||||
class DatasetTable38Import implements ToModel,WithStartRow
|
||||
{
|
||||
/**
|
||||
* @param array $row
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Model|null
|
||||
*/
|
||||
protected $datasetId;
|
||||
protected $userId;
|
||||
|
||||
public function __construct($datasetId,$userId)
|
||||
{
|
||||
$this->datasetId = $datasetId;
|
||||
$this->userId = $userId;
|
||||
}
|
||||
|
||||
public function startRow(): int
|
||||
{
|
||||
return 6;
|
||||
}
|
||||
|
||||
public function model(array $row)
|
||||
{
|
||||
return new DatasetTable38([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
]);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
|
||||
namespace App\Imports;
|
||||
|
||||
use App\Models\Dataset\DatasetTable39A;
|
||||
use Maatwebsite\Excel\Concerns\ToModel;
|
||||
use Maatwebsite\Excel\Concerns\WithStartRow;
|
||||
|
||||
class DatasetTable39AImport implements ToModel,WithStartRow
|
||||
{
|
||||
/**
|
||||
* @param array $row
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Model|null
|
||||
*/
|
||||
protected $datasetId;
|
||||
protected $userId;
|
||||
|
||||
public function __construct($datasetId,$userId)
|
||||
{
|
||||
$this->datasetId = $datasetId;
|
||||
$this->userId = $userId;
|
||||
}
|
||||
|
||||
public function startRow(): int
|
||||
{
|
||||
return 6;
|
||||
}
|
||||
|
||||
public function model(array $row)
|
||||
{
|
||||
return new DatasetTable39A([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
]);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
|
||||
namespace App\Imports;
|
||||
|
||||
use App\Models\Dataset\DatasetTable39;
|
||||
use Maatwebsite\Excel\Concerns\ToModel;
|
||||
use Maatwebsite\Excel\Concerns\WithStartRow;
|
||||
|
||||
class DatasetTable39Import implements ToModel,WithStartRow
|
||||
{
|
||||
/**
|
||||
* @param array $row
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Model|null
|
||||
*/
|
||||
protected $datasetId;
|
||||
protected $userId;
|
||||
|
||||
public function __construct($datasetId,$userId)
|
||||
{
|
||||
$this->datasetId = $datasetId;
|
||||
$this->userId = $userId;
|
||||
}
|
||||
|
||||
public function startRow(): int
|
||||
{
|
||||
return 6;
|
||||
}
|
||||
|
||||
public function model(array $row)
|
||||
{
|
||||
return new DatasetTable39([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
]);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
|
||||
namespace App\Imports;
|
||||
|
||||
use App\Models\DatasetTable3;
|
||||
use Maatwebsite\Excel\Concerns\ToModel;
|
||||
use Maatwebsite\Excel\Concerns\WithStartRow;
|
||||
|
||||
class DatasetTable3Import implements ToModel,WithStartRow
|
||||
{
|
||||
/**
|
||||
* @param array $row
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Model|null
|
||||
*/
|
||||
protected $datasetId;
|
||||
protected $userId;
|
||||
|
||||
public function __construct($datasetId,$userId)
|
||||
{
|
||||
$this->datasetId = $datasetId;
|
||||
$this->userId = $userId;
|
||||
}
|
||||
|
||||
public function startRow(): int
|
||||
{
|
||||
return 6;
|
||||
}
|
||||
|
||||
public function model(array $row)
|
||||
{
|
||||
return new DatasetTable3([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
]);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
|
||||
namespace App\Imports;
|
||||
|
||||
use App\Models\Dataset\DatasetTable40;
|
||||
use Maatwebsite\Excel\Concerns\ToModel;
|
||||
use Maatwebsite\Excel\Concerns\WithStartRow;
|
||||
|
||||
class DatasetTable40Import implements ToModel,WithStartRow
|
||||
{
|
||||
/**
|
||||
* @param array $row
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Model|null
|
||||
*/
|
||||
protected $datasetId;
|
||||
protected $userId;
|
||||
|
||||
public function __construct($datasetId,$userId)
|
||||
{
|
||||
$this->datasetId = $datasetId;
|
||||
$this->userId = $userId;
|
||||
}
|
||||
|
||||
public function startRow(): int
|
||||
{
|
||||
return 6;
|
||||
}
|
||||
|
||||
public function model(array $row)
|
||||
{
|
||||
return new DatasetTable40([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
]);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
|
||||
namespace App\Imports;
|
||||
|
||||
use App\Models\Dataset\DatasetTable41A;
|
||||
use Maatwebsite\Excel\Concerns\ToModel;
|
||||
use Maatwebsite\Excel\Concerns\WithStartRow;
|
||||
|
||||
class DatasetTable41AImport implements ToModel,WithStartRow
|
||||
{
|
||||
/**
|
||||
* @param array $row
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Model|null
|
||||
*/
|
||||
protected $datasetId;
|
||||
protected $userId;
|
||||
|
||||
public function __construct($datasetId,$userId)
|
||||
{
|
||||
$this->datasetId = $datasetId;
|
||||
$this->userId = $userId;
|
||||
}
|
||||
|
||||
public function startRow(): int
|
||||
{
|
||||
return 6;
|
||||
}
|
||||
|
||||
public function model(array $row)
|
||||
{
|
||||
return new DatasetTable41A([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
]);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
|
||||
namespace App\Imports;
|
||||
|
||||
use App\Models\Dataset\DatasetTable41;
|
||||
use Maatwebsite\Excel\Concerns\ToModel;
|
||||
use Maatwebsite\Excel\Concerns\WithStartRow;
|
||||
|
||||
class DatasetTable41Import implements ToModel,WithStartRow
|
||||
{
|
||||
/**
|
||||
* @param array $row
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Model|null
|
||||
*/
|
||||
protected $datasetId;
|
||||
protected $userId;
|
||||
|
||||
public function __construct($datasetId,$userId)
|
||||
{
|
||||
$this->datasetId = $datasetId;
|
||||
$this->userId = $userId;
|
||||
}
|
||||
|
||||
public function startRow(): int
|
||||
{
|
||||
return 6;
|
||||
}
|
||||
|
||||
public function model(array $row)
|
||||
{
|
||||
return new DatasetTable41([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
]);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
|
||||
namespace App\Imports;
|
||||
|
||||
use App\Models\Dataset\DatasetTable42;
|
||||
use Maatwebsite\Excel\Concerns\ToModel;
|
||||
use Maatwebsite\Excel\Concerns\WithStartRow;
|
||||
|
||||
class DatasetTable42Import implements ToModel,WithStartRow
|
||||
{
|
||||
/**
|
||||
* @param array $row
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Model|null
|
||||
*/
|
||||
protected $datasetId;
|
||||
protected $userId;
|
||||
|
||||
public function __construct($datasetId,$userId)
|
||||
{
|
||||
$this->datasetId = $datasetId;
|
||||
$this->userId = $userId;
|
||||
}
|
||||
|
||||
public function startRow(): int
|
||||
{
|
||||
return 6;
|
||||
}
|
||||
|
||||
public function model(array $row)
|
||||
{
|
||||
return new DatasetTable42([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
]);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
|
||||
namespace App\Imports;
|
||||
|
||||
use App\Models\Dataset\DatasetTable43A;
|
||||
use Maatwebsite\Excel\Concerns\ToModel;
|
||||
use Maatwebsite\Excel\Concerns\WithStartRow;
|
||||
|
||||
class DatasetTable43AImport implements ToModel,WithStartRow
|
||||
{
|
||||
/**
|
||||
* @param array $row
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Model|null
|
||||
*/
|
||||
protected $datasetId;
|
||||
protected $userId;
|
||||
|
||||
public function __construct($datasetId,$userId)
|
||||
{
|
||||
$this->datasetId = $datasetId;
|
||||
$this->userId = $userId;
|
||||
}
|
||||
|
||||
public function startRow(): int
|
||||
{
|
||||
return 6;
|
||||
}
|
||||
|
||||
public function model(array $row)
|
||||
{
|
||||
return new DatasetTable43A([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
]);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
|
||||
namespace App\Imports;
|
||||
|
||||
use App\Models\Dataset\DatasetTable43B;
|
||||
use Maatwebsite\Excel\Concerns\ToModel;
|
||||
use Maatwebsite\Excel\Concerns\WithStartRow;
|
||||
|
||||
class DatasetTable43BImport implements ToModel,WithStartRow
|
||||
{
|
||||
/**
|
||||
* @param array $row
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Model|null
|
||||
*/
|
||||
protected $datasetId;
|
||||
protected $userId;
|
||||
|
||||
public function __construct($datasetId,$userId)
|
||||
{
|
||||
$this->datasetId = $datasetId;
|
||||
$this->userId = $userId;
|
||||
}
|
||||
|
||||
public function startRow(): int
|
||||
{
|
||||
return 6;
|
||||
}
|
||||
|
||||
public function model(array $row)
|
||||
{
|
||||
return new DatasetTable43B([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
]);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
|
||||
namespace App\Imports;
|
||||
|
||||
use App\Models\Dataset\DatasetTable43;
|
||||
use Maatwebsite\Excel\Concerns\ToModel;
|
||||
use Maatwebsite\Excel\Concerns\WithStartRow;
|
||||
|
||||
class DatasetTable43Import implements ToModel,WithStartRow
|
||||
{
|
||||
/**
|
||||
* @param array $row
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Model|null
|
||||
*/
|
||||
protected $datasetId;
|
||||
protected $userId;
|
||||
|
||||
public function __construct($datasetId,$userId)
|
||||
{
|
||||
$this->datasetId = $datasetId;
|
||||
$this->userId = $userId;
|
||||
}
|
||||
|
||||
public function startRow(): int
|
||||
{
|
||||
return 6;
|
||||
}
|
||||
|
||||
public function model(array $row)
|
||||
{
|
||||
return new DatasetTable43([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
]);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
|
||||
namespace App\Imports;
|
||||
|
||||
use App\Models\Dataset\DatasetTable44A;
|
||||
use Maatwebsite\Excel\Concerns\ToModel;
|
||||
use Maatwebsite\Excel\Concerns\WithStartRow;
|
||||
|
||||
class DatasetTable44AImport implements ToModel,WithStartRow
|
||||
{
|
||||
/**
|
||||
* @param array $row
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Model|null
|
||||
*/
|
||||
protected $datasetId;
|
||||
protected $userId;
|
||||
|
||||
public function __construct($datasetId,$userId)
|
||||
{
|
||||
$this->datasetId = $datasetId;
|
||||
$this->userId = $userId;
|
||||
}
|
||||
|
||||
public function startRow(): int
|
||||
{
|
||||
return 6;
|
||||
}
|
||||
|
||||
public function model(array $row)
|
||||
{
|
||||
return new DatasetTable44A([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
]);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
|
||||
namespace App\Imports;
|
||||
|
||||
use App\Models\Dataset\DatasetTable44B;
|
||||
use Maatwebsite\Excel\Concerns\ToModel;
|
||||
use Maatwebsite\Excel\Concerns\WithStartRow;
|
||||
|
||||
class DatasetTable44BImport implements ToModel,WithStartRow
|
||||
{
|
||||
/**
|
||||
* @param array $row
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Model|null
|
||||
*/
|
||||
protected $datasetId;
|
||||
protected $userId;
|
||||
|
||||
public function __construct($datasetId,$userId)
|
||||
{
|
||||
$this->datasetId = $datasetId;
|
||||
$this->userId = $userId;
|
||||
}
|
||||
|
||||
public function startRow(): int
|
||||
{
|
||||
return 6;
|
||||
}
|
||||
|
||||
public function model(array $row)
|
||||
{
|
||||
return new DatasetTable44B([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
]);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
|
||||
namespace App\Imports;
|
||||
|
||||
use App\Models\Dataset\DatasetTable44;
|
||||
use Maatwebsite\Excel\Concerns\ToModel;
|
||||
use Maatwebsite\Excel\Concerns\WithStartRow;
|
||||
|
||||
class DatasetTable44Import implements ToModel,WithStartRow
|
||||
{
|
||||
/**
|
||||
* @param array $row
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Model|null
|
||||
*/
|
||||
protected $datasetId;
|
||||
protected $userId;
|
||||
|
||||
public function __construct($datasetId,$userId)
|
||||
{
|
||||
$this->datasetId = $datasetId;
|
||||
$this->userId = $userId;
|
||||
}
|
||||
|
||||
public function startRow(): int
|
||||
{
|
||||
return 6;
|
||||
}
|
||||
|
||||
public function model(array $row)
|
||||
{
|
||||
return new DatasetTable44([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
]);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
|
||||
namespace App\Imports;
|
||||
|
||||
use App\Models\Dataset\DatasetTable45;
|
||||
use Maatwebsite\Excel\Concerns\ToModel;
|
||||
use Maatwebsite\Excel\Concerns\WithStartRow;
|
||||
|
||||
class DatasetTable45Import implements ToModel,WithStartRow
|
||||
{
|
||||
/**
|
||||
* @param array $row
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Model|null
|
||||
*/
|
||||
protected $datasetId;
|
||||
protected $userId;
|
||||
|
||||
public function __construct($datasetId,$userId)
|
||||
{
|
||||
$this->datasetId = $datasetId;
|
||||
$this->userId = $userId;
|
||||
}
|
||||
|
||||
public function startRow(): int
|
||||
{
|
||||
return 6;
|
||||
}
|
||||
|
||||
public function model(array $row)
|
||||
{
|
||||
return new DatasetTable45([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
]);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
|
||||
namespace App\Imports;
|
||||
|
||||
use App\Models\Dataset\DatasetTable46;
|
||||
use Maatwebsite\Excel\Concerns\ToModel;
|
||||
use Maatwebsite\Excel\Concerns\WithStartRow;
|
||||
|
||||
class DatasetTable46Import implements ToModel,WithStartRow
|
||||
{
|
||||
/**
|
||||
* @param array $row
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Model|null
|
||||
*/
|
||||
protected $datasetId;
|
||||
protected $userId;
|
||||
|
||||
public function __construct($datasetId,$userId)
|
||||
{
|
||||
$this->datasetId = $datasetId;
|
||||
$this->userId = $userId;
|
||||
}
|
||||
|
||||
public function startRow(): int
|
||||
{
|
||||
return 6;
|
||||
}
|
||||
|
||||
public function model(array $row)
|
||||
{
|
||||
return new DatasetTable46([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
]);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
|
||||
namespace App\Imports;
|
||||
|
||||
use App\Models\Dataset\DatasetTable47;
|
||||
use Maatwebsite\Excel\Concerns\ToModel;
|
||||
use Maatwebsite\Excel\Concerns\WithStartRow;
|
||||
|
||||
class DatasetTable47Import implements ToModel,WithStartRow
|
||||
{
|
||||
/**
|
||||
* @param array $row
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Model|null
|
||||
*/
|
||||
protected $datasetId;
|
||||
protected $userId;
|
||||
|
||||
public function __construct($datasetId,$userId)
|
||||
{
|
||||
$this->datasetId = $datasetId;
|
||||
$this->userId = $userId;
|
||||
}
|
||||
|
||||
public function startRow(): int
|
||||
{
|
||||
return 6;
|
||||
}
|
||||
|
||||
public function model(array $row)
|
||||
{
|
||||
return new DatasetTable47([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
]);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
|
||||
namespace App\Imports;
|
||||
|
||||
use App\Models\Dataset\DatasetTable48A;
|
||||
use Maatwebsite\Excel\Concerns\ToModel;
|
||||
use Maatwebsite\Excel\Concerns\WithStartRow;
|
||||
|
||||
class DatasetTable48AImport implements ToModel,WithStartRow
|
||||
{
|
||||
/**
|
||||
* @param array $row
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Model|null
|
||||
*/
|
||||
protected $datasetId;
|
||||
protected $userId;
|
||||
|
||||
public function __construct($datasetId,$userId)
|
||||
{
|
||||
$this->datasetId = $datasetId;
|
||||
$this->userId = $userId;
|
||||
}
|
||||
|
||||
public function startRow(): int
|
||||
{
|
||||
return 6;
|
||||
}
|
||||
|
||||
public function model(array $row)
|
||||
{
|
||||
return new DatasetTable48A([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
]);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
|
||||
namespace App\Imports;
|
||||
|
||||
use App\Models\Dataset\DatasetTable48;
|
||||
use Maatwebsite\Excel\Concerns\ToModel;
|
||||
use Maatwebsite\Excel\Concerns\WithStartRow;
|
||||
|
||||
class DatasetTable48Import implements ToModel,WithStartRow
|
||||
{
|
||||
/**
|
||||
* @param array $row
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Model|null
|
||||
*/
|
||||
protected $datasetId;
|
||||
protected $userId;
|
||||
|
||||
public function __construct($datasetId,$userId)
|
||||
{
|
||||
$this->datasetId = $datasetId;
|
||||
$this->userId = $userId;
|
||||
}
|
||||
|
||||
public function startRow(): int
|
||||
{
|
||||
return 6;
|
||||
}
|
||||
|
||||
public function model(array $row)
|
||||
{
|
||||
return new DatasetTable48([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
]);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
|
||||
namespace App\Imports;
|
||||
|
||||
use App\Models\Dataset\DatasetTable49;
|
||||
use Maatwebsite\Excel\Concerns\ToModel;
|
||||
use Maatwebsite\Excel\Concerns\WithStartRow;
|
||||
|
||||
class DatasetTable49Import implements ToModel,WithStartRow
|
||||
{
|
||||
/**
|
||||
* @param array $row
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Model|null
|
||||
*/
|
||||
protected $datasetId;
|
||||
protected $userId;
|
||||
|
||||
public function __construct($datasetId,$userId)
|
||||
{
|
||||
$this->datasetId = $datasetId;
|
||||
$this->userId = $userId;
|
||||
}
|
||||
|
||||
public function startRow(): int
|
||||
{
|
||||
return 6;
|
||||
}
|
||||
|
||||
public function model(array $row)
|
||||
{
|
||||
return new DatasetTable49([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
]);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,50 @@
|
|||
<?php
|
||||
|
||||
namespace App\Imports;
|
||||
|
||||
use App\Models\Dataset\DatasetTable4;
|
||||
use Maatwebsite\Excel\Concerns\ToModel;
|
||||
use Maatwebsite\Excel\Concerns\WithStartRow;
|
||||
|
||||
class DatasetTable4Import implements ToModel,WithStartRow
|
||||
{
|
||||
/**
|
||||
* @param array $row
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Model|null
|
||||
*/
|
||||
protected $datasetId;
|
||||
protected $userId;
|
||||
|
||||
public function __construct($datasetId,$userId)
|
||||
{
|
||||
$this->datasetId = $datasetId;
|
||||
$this->userId = $userId;
|
||||
}
|
||||
|
||||
public function startRow(): int
|
||||
{
|
||||
return 6;
|
||||
}
|
||||
|
||||
public function model(array $row)
|
||||
{
|
||||
// cek kalau row kosong jangan insert
|
||||
if ($row[0] === null && $row[1] === null && $row[2] === null && $row[3] === null && $row[4] === null && $row[5] === null && $row[6] === null) {
|
||||
return null; // baris kosong dilewati
|
||||
}
|
||||
|
||||
return new DatasetTable4([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
'golongan' => $row[0],
|
||||
'nama_spesies_latin' => $row[1],
|
||||
'nama_spesies_lokal' => $row[2],
|
||||
'status_endemik' => $row[3],
|
||||
'status_terancam' => $row[4],
|
||||
'status_dilindungi' => $row[5],
|
||||
'status_tidak_dilindungi' => $row[6],
|
||||
]);
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
|
||||
namespace App\Imports;
|
||||
|
||||
use App\Models\Dataset\DatasetTable50A;
|
||||
use Maatwebsite\Excel\Concerns\ToModel;
|
||||
use Maatwebsite\Excel\Concerns\WithStartRow;
|
||||
|
||||
class DatasetTable50AImport implements ToModel,WithStartRow
|
||||
{
|
||||
/**
|
||||
* @param array $row
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Model|null
|
||||
*/
|
||||
protected $datasetId;
|
||||
protected $userId;
|
||||
|
||||
public function __construct($datasetId,$userId)
|
||||
{
|
||||
$this->datasetId = $datasetId;
|
||||
$this->userId = $userId;
|
||||
}
|
||||
|
||||
public function startRow(): int
|
||||
{
|
||||
return 6;
|
||||
}
|
||||
|
||||
public function model(array $row)
|
||||
{
|
||||
return new DatasetTable50A([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
]);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
|
||||
namespace App\Imports;
|
||||
|
||||
use App\Models\Dataset\DatasetTable50;
|
||||
use Maatwebsite\Excel\Concerns\ToModel;
|
||||
use Maatwebsite\Excel\Concerns\WithStartRow;
|
||||
|
||||
class DatasetTable50Import implements ToModel,WithStartRow
|
||||
{
|
||||
/**
|
||||
* @param array $row
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Model|null
|
||||
*/
|
||||
protected $datasetId;
|
||||
protected $userId;
|
||||
|
||||
public function __construct($datasetId,$userId)
|
||||
{
|
||||
$this->datasetId = $datasetId;
|
||||
$this->userId = $userId;
|
||||
}
|
||||
|
||||
public function startRow(): int
|
||||
{
|
||||
return 6;
|
||||
}
|
||||
|
||||
public function model(array $row)
|
||||
{
|
||||
return new DatasetTable50([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
]);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
|
||||
namespace App\Imports;
|
||||
|
||||
use App\Models\Dataset\DatasetTable51;
|
||||
use Maatwebsite\Excel\Concerns\ToModel;
|
||||
use Maatwebsite\Excel\Concerns\WithStartRow;
|
||||
|
||||
class DatasetTable51Import implements ToModel,WithStartRow
|
||||
{
|
||||
/**
|
||||
* @param array $row
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Model|null
|
||||
*/
|
||||
protected $datasetId;
|
||||
protected $userId;
|
||||
|
||||
public function __construct($datasetId,$userId)
|
||||
{
|
||||
$this->datasetId = $datasetId;
|
||||
$this->userId = $userId;
|
||||
}
|
||||
|
||||
public function startRow(): int
|
||||
{
|
||||
return 6;
|
||||
}
|
||||
|
||||
public function model(array $row)
|
||||
{
|
||||
return new DatasetTable51([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
]);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
|
||||
namespace App\Imports;
|
||||
|
||||
use App\Models\Dataset\DatasetTable52;
|
||||
use Maatwebsite\Excel\Concerns\ToModel;
|
||||
use Maatwebsite\Excel\Concerns\WithStartRow;
|
||||
|
||||
class DatasetTable52Import implements ToModel,WithStartRow
|
||||
{
|
||||
/**
|
||||
* @param array $row
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Model|null
|
||||
*/
|
||||
protected $datasetId;
|
||||
protected $userId;
|
||||
|
||||
public function __construct($datasetId,$userId)
|
||||
{
|
||||
$this->datasetId = $datasetId;
|
||||
$this->userId = $userId;
|
||||
}
|
||||
|
||||
public function startRow(): int
|
||||
{
|
||||
return 6;
|
||||
}
|
||||
|
||||
public function model(array $row)
|
||||
{
|
||||
return new DatasetTable52([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
]);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
|
||||
namespace App\Imports;
|
||||
|
||||
use App\Models\Dataset\DatasetTable53;
|
||||
use Maatwebsite\Excel\Concerns\ToModel;
|
||||
use Maatwebsite\Excel\Concerns\WithStartRow;
|
||||
|
||||
class DatasetTable53Import implements ToModel,WithStartRow
|
||||
{
|
||||
/**
|
||||
* @param array $row
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Model|null
|
||||
*/
|
||||
protected $datasetId;
|
||||
protected $userId;
|
||||
|
||||
public function __construct($datasetId,$userId)
|
||||
{
|
||||
$this->datasetId = $datasetId;
|
||||
$this->userId = $userId;
|
||||
}
|
||||
|
||||
public function startRow(): int
|
||||
{
|
||||
return 6;
|
||||
}
|
||||
|
||||
public function model(array $row)
|
||||
{
|
||||
return new DatasetTable53([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
]);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
|
||||
namespace App\Imports;
|
||||
|
||||
use App\Models\Dataset\DatasetTable54;
|
||||
use Maatwebsite\Excel\Concerns\ToModel;
|
||||
use Maatwebsite\Excel\Concerns\WithStartRow;
|
||||
|
||||
class DatasetTable54Import implements ToModel,WithStartRow
|
||||
{
|
||||
/**
|
||||
* @param array $row
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Model|null
|
||||
*/
|
||||
protected $datasetId;
|
||||
protected $userId;
|
||||
|
||||
public function __construct($datasetId,$userId)
|
||||
{
|
||||
$this->datasetId = $datasetId;
|
||||
$this->userId = $userId;
|
||||
}
|
||||
|
||||
public function startRow(): int
|
||||
{
|
||||
return 6;
|
||||
}
|
||||
|
||||
public function model(array $row)
|
||||
{
|
||||
return new DatasetTable54([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
]);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
|
||||
namespace App\Imports;
|
||||
|
||||
use App\Models\Dataset\DatasetTable55;
|
||||
use Maatwebsite\Excel\Concerns\ToModel;
|
||||
use Maatwebsite\Excel\Concerns\WithStartRow;
|
||||
|
||||
class DatasetTable55Import implements ToModel,WithStartRow
|
||||
{
|
||||
/**
|
||||
* @param array $row
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Model|null
|
||||
*/
|
||||
protected $datasetId;
|
||||
protected $userId;
|
||||
|
||||
public function __construct($datasetId,$userId)
|
||||
{
|
||||
$this->datasetId = $datasetId;
|
||||
$this->userId = $userId;
|
||||
}
|
||||
|
||||
public function startRow(): int
|
||||
{
|
||||
return 6;
|
||||
}
|
||||
|
||||
public function model(array $row)
|
||||
{
|
||||
return new DatasetTable55([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
]);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
|
||||
namespace App\Imports;
|
||||
|
||||
use App\Models\Dataset\DatasetTable56;
|
||||
use Maatwebsite\Excel\Concerns\ToModel;
|
||||
use Maatwebsite\Excel\Concerns\WithStartRow;
|
||||
|
||||
class DatasetTable56Import implements ToModel,WithStartRow
|
||||
{
|
||||
/**
|
||||
* @param array $row
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Model|null
|
||||
*/
|
||||
protected $datasetId;
|
||||
protected $userId;
|
||||
|
||||
public function __construct($datasetId,$userId)
|
||||
{
|
||||
$this->datasetId = $datasetId;
|
||||
$this->userId = $userId;
|
||||
}
|
||||
|
||||
public function startRow(): int
|
||||
{
|
||||
return 6;
|
||||
}
|
||||
|
||||
public function model(array $row)
|
||||
{
|
||||
return new DatasetTable56([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
]);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
|
||||
namespace App\Imports;
|
||||
|
||||
use App\Models\Dataset\DatasetTable57;
|
||||
use Maatwebsite\Excel\Concerns\ToModel;
|
||||
use Maatwebsite\Excel\Concerns\WithStartRow;
|
||||
|
||||
class DatasetTable57Import implements ToModel,WithStartRow
|
||||
{
|
||||
/**
|
||||
* @param array $row
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Model|null
|
||||
*/
|
||||
protected $datasetId;
|
||||
protected $userId;
|
||||
|
||||
public function __construct($datasetId,$userId)
|
||||
{
|
||||
$this->datasetId = $datasetId;
|
||||
$this->userId = $userId;
|
||||
}
|
||||
|
||||
public function startRow(): int
|
||||
{
|
||||
return 6;
|
||||
}
|
||||
|
||||
public function model(array $row)
|
||||
{
|
||||
return new DatasetTable57([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
]);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
|
||||
namespace App\Imports;
|
||||
|
||||
use App\Models\Dataset\DatasetTable58;
|
||||
use Maatwebsite\Excel\Concerns\ToModel;
|
||||
use Maatwebsite\Excel\Concerns\WithStartRow;
|
||||
|
||||
class DatasetTable58Import implements ToModel,WithStartRow
|
||||
{
|
||||
/**
|
||||
* @param array $row
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Model|null
|
||||
*/
|
||||
protected $datasetId;
|
||||
protected $userId;
|
||||
|
||||
public function __construct($datasetId,$userId)
|
||||
{
|
||||
$this->datasetId = $datasetId;
|
||||
$this->userId = $userId;
|
||||
}
|
||||
|
||||
public function startRow(): int
|
||||
{
|
||||
return 6;
|
||||
}
|
||||
|
||||
public function model(array $row)
|
||||
{
|
||||
return new DatasetTable58([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
]);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
|
||||
namespace App\Imports;
|
||||
|
||||
use App\Models\Dataset\DatasetTable59;
|
||||
use Maatwebsite\Excel\Concerns\ToModel;
|
||||
use Maatwebsite\Excel\Concerns\WithStartRow;
|
||||
|
||||
class DatasetTable59Import implements ToModel,WithStartRow
|
||||
{
|
||||
/**
|
||||
* @param array $row
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Model|null
|
||||
*/
|
||||
protected $datasetId;
|
||||
protected $userId;
|
||||
|
||||
public function __construct($datasetId,$userId)
|
||||
{
|
||||
$this->datasetId = $datasetId;
|
||||
$this->userId = $userId;
|
||||
}
|
||||
|
||||
public function startRow(): int
|
||||
{
|
||||
return 6;
|
||||
}
|
||||
|
||||
public function model(array $row)
|
||||
{
|
||||
return new DatasetTable59([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
]);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
|
||||
namespace App\Imports;
|
||||
|
||||
use App\Models\Dataset\DatasetTable5;
|
||||
use Maatwebsite\Excel\Concerns\ToModel;
|
||||
use Maatwebsite\Excel\Concerns\WithStartRow;
|
||||
|
||||
class DatasetTable5Import implements ToModel,WithStartRow
|
||||
{
|
||||
/**
|
||||
* @param array $row
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Model|null
|
||||
*/
|
||||
protected $datasetId;
|
||||
protected $userId;
|
||||
|
||||
public function __construct($datasetId,$userId)
|
||||
{
|
||||
$this->datasetId = $datasetId;
|
||||
$this->userId = $userId;
|
||||
}
|
||||
|
||||
public function startRow(): int
|
||||
{
|
||||
return 6;
|
||||
}
|
||||
|
||||
public function model(array $row)
|
||||
{
|
||||
return new DatasetTable5([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
]);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
|
||||
namespace App\Imports;
|
||||
|
||||
use App\Models\Dataset\DatasetTable60A;
|
||||
use Maatwebsite\Excel\Concerns\ToModel;
|
||||
use Maatwebsite\Excel\Concerns\WithStartRow;
|
||||
|
||||
class DatasetTable60AImport implements ToModel,WithStartRow
|
||||
{
|
||||
/**
|
||||
* @param array $row
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Model|null
|
||||
*/
|
||||
protected $datasetId;
|
||||
protected $userId;
|
||||
|
||||
public function __construct($datasetId,$userId)
|
||||
{
|
||||
$this->datasetId = $datasetId;
|
||||
$this->userId = $userId;
|
||||
}
|
||||
|
||||
public function startRow(): int
|
||||
{
|
||||
return 6;
|
||||
}
|
||||
|
||||
public function model(array $row)
|
||||
{
|
||||
return new DatasetTable60A([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
]);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
|
||||
namespace App\Imports;
|
||||
|
||||
use App\Models\Dataset\DatasetTable60;
|
||||
use Maatwebsite\Excel\Concerns\ToModel;
|
||||
use Maatwebsite\Excel\Concerns\WithStartRow;
|
||||
|
||||
class DatasetTable60Import implements ToModel,WithStartRow
|
||||
{
|
||||
/**
|
||||
* @param array $row
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Model|null
|
||||
*/
|
||||
protected $datasetId;
|
||||
protected $userId;
|
||||
|
||||
public function __construct($datasetId,$userId)
|
||||
{
|
||||
$this->datasetId = $datasetId;
|
||||
$this->userId = $userId;
|
||||
}
|
||||
|
||||
public function startRow(): int
|
||||
{
|
||||
return 6;
|
||||
}
|
||||
|
||||
public function model(array $row)
|
||||
{
|
||||
return new DatasetTable60([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
]);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
|
||||
namespace App\Imports;
|
||||
|
||||
use App\Models\Dataset\DatasetTable61;
|
||||
use Maatwebsite\Excel\Concerns\ToModel;
|
||||
use Maatwebsite\Excel\Concerns\WithStartRow;
|
||||
|
||||
class DatasetTable61Import implements ToModel,WithStartRow
|
||||
{
|
||||
/**
|
||||
* @param array $row
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Model|null
|
||||
*/
|
||||
protected $datasetId;
|
||||
protected $userId;
|
||||
|
||||
public function __construct($datasetId,$userId)
|
||||
{
|
||||
$this->datasetId = $datasetId;
|
||||
$this->userId = $userId;
|
||||
}
|
||||
|
||||
public function startRow(): int
|
||||
{
|
||||
return 6;
|
||||
}
|
||||
|
||||
public function model(array $row)
|
||||
{
|
||||
return new DatasetTable61([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
]);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
|
||||
namespace App\Imports;
|
||||
|
||||
use App\Models\Dataset\DatasetTable6;
|
||||
use Maatwebsite\Excel\Concerns\ToModel;
|
||||
use Maatwebsite\Excel\Concerns\WithStartRow;
|
||||
|
||||
class DatasetTable6Import implements ToModel,WithStartRow
|
||||
{
|
||||
/**
|
||||
* @param array $row
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Model|null
|
||||
*/
|
||||
protected $datasetId;
|
||||
protected $userId;
|
||||
|
||||
public function __construct($datasetId,$userId)
|
||||
{
|
||||
$this->datasetId = $datasetId;
|
||||
$this->userId = $userId;
|
||||
}
|
||||
|
||||
public function startRow(): int
|
||||
{
|
||||
return 6;
|
||||
}
|
||||
|
||||
public function model(array $row)
|
||||
{
|
||||
return new DatasetTable6([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
]);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
|
||||
namespace App\Imports;
|
||||
|
||||
use App\Models\Dataset\DatasetTable7;
|
||||
use Maatwebsite\Excel\Concerns\ToModel;
|
||||
use Maatwebsite\Excel\Concerns\WithStartRow;
|
||||
|
||||
class DatasetTable7Import implements ToModel,WithStartRow
|
||||
{
|
||||
/**
|
||||
* @param array $row
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Model|null
|
||||
*/
|
||||
protected $datasetId;
|
||||
protected $userId;
|
||||
|
||||
public function __construct($datasetId,$userId)
|
||||
{
|
||||
$this->datasetId = $datasetId;
|
||||
$this->userId = $userId;
|
||||
}
|
||||
|
||||
public function startRow(): int
|
||||
{
|
||||
return 6;
|
||||
}
|
||||
|
||||
public function model(array $row)
|
||||
{
|
||||
return new DatasetTable7([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
]);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
|
||||
namespace App\Imports;
|
||||
|
||||
use App\Models\Dataset\DatasetTable8;
|
||||
use Maatwebsite\Excel\Concerns\ToModel;
|
||||
use Maatwebsite\Excel\Concerns\WithStartRow;
|
||||
|
||||
class DatasetTable8Import implements ToModel,WithStartRow
|
||||
{
|
||||
/**
|
||||
* @param array $row
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Model|null
|
||||
*/
|
||||
protected $datasetId;
|
||||
protected $userId;
|
||||
|
||||
public function __construct($datasetId,$userId)
|
||||
{
|
||||
$this->datasetId = $datasetId;
|
||||
$this->userId = $userId;
|
||||
}
|
||||
|
||||
public function startRow(): int
|
||||
{
|
||||
return 6;
|
||||
}
|
||||
|
||||
public function model(array $row)
|
||||
{
|
||||
return new DatasetTable8([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
]);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
|
||||
namespace App\Imports;
|
||||
|
||||
use App\Models\Dataset\DatasetTable9;
|
||||
use Maatwebsite\Excel\Concerns\ToModel;
|
||||
use Maatwebsite\Excel\Concerns\WithStartRow;
|
||||
|
||||
class DatasetTable9Import implements ToModel,WithStartRow
|
||||
{
|
||||
/**
|
||||
* @param array $row
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Model|null
|
||||
*/
|
||||
protected $datasetId;
|
||||
protected $userId;
|
||||
|
||||
public function __construct($datasetId,$userId)
|
||||
{
|
||||
$this->datasetId = $datasetId;
|
||||
$this->userId = $userId;
|
||||
}
|
||||
|
||||
public function startRow(): int
|
||||
{
|
||||
return 6;
|
||||
}
|
||||
|
||||
public function model(array $row)
|
||||
{
|
||||
return new DatasetTable9([
|
||||
'dataset_id' => $this->datasetId,
|
||||
'created_by' => $this->userId,
|
||||
]);
|
||||
}
|
||||
}
|
|
@ -2,10 +2,21 @@
|
|||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable1 extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
use SoftDeletes;
|
||||
protected $table = 'dataset_table1';
|
||||
protected $primaryKey = 'DatasetTable1Id';
|
||||
|
||||
protected $guarded = [];
|
||||
|
||||
function dataset() {
|
||||
return $this->belongsTo('App\Models\Dataset','dataset_id');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,10 +2,21 @@
|
|||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable10 extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
use SoftDeletes;
|
||||
protected $table = 'dataset_table10';
|
||||
protected $primaryKey = 'DatasetTable10Id';
|
||||
|
||||
protected $guarded = [];
|
||||
|
||||
function dataset() {
|
||||
return $this->belongsTo('App\Models\Dataset','dataset_id');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,10 +2,21 @@
|
|||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable11 extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
use SoftDeletes;
|
||||
protected $table = 'dataset_table11';
|
||||
protected $primaryKey = 'DatasetTable11Id';
|
||||
|
||||
protected $guarded = [];
|
||||
|
||||
function dataset() {
|
||||
return $this->belongsTo('App\Models\Dataset','dataset_id');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,10 +2,21 @@
|
|||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable12 extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
use SoftDeletes;
|
||||
protected $table = 'dataset_table12';
|
||||
protected $primaryKey = 'DatasetTable12Id';
|
||||
|
||||
protected $guarded = [];
|
||||
|
||||
function dataset() {
|
||||
return $this->belongsTo('App\Models\Dataset','dataset_id');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,10 +2,21 @@
|
|||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable13 extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
use SoftDeletes;
|
||||
protected $table = 'dataset_table13';
|
||||
protected $primaryKey = 'DatasetTable13Id';
|
||||
|
||||
protected $guarded = [];
|
||||
|
||||
function dataset() {
|
||||
return $this->belongsTo('App\Models\Dataset','dataset_id');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,10 +2,21 @@
|
|||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable14 extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
use SoftDeletes;
|
||||
protected $table = 'dataset_table14';
|
||||
protected $primaryKey = 'DatasetTable14Id';
|
||||
|
||||
protected $guarded = [];
|
||||
|
||||
function dataset() {
|
||||
return $this->belongsTo('App\Models\Dataset','dataset_id');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,10 +2,21 @@
|
|||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable15 extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
use SoftDeletes;
|
||||
protected $table = 'dataset_table15';
|
||||
protected $primaryKey = 'DatasetTable15Id';
|
||||
|
||||
protected $guarded = [];
|
||||
|
||||
function dataset() {
|
||||
return $this->belongsTo('App\Models\Dataset','dataset_id');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,10 +2,21 @@
|
|||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable16 extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
use SoftDeletes;
|
||||
protected $table = 'dataset_table16';
|
||||
protected $primaryKey = 'DatasetTable16Id';
|
||||
|
||||
protected $guarded = [];
|
||||
|
||||
function dataset() {
|
||||
return $this->belongsTo('App\Models\Dataset','dataset_id');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,10 +2,21 @@
|
|||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable17 extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
use SoftDeletes;
|
||||
protected $table = 'dataset_table17';
|
||||
protected $primaryKey = 'DatasetTable17Id';
|
||||
|
||||
protected $guarded = [];
|
||||
|
||||
function dataset() {
|
||||
return $this->belongsTo('App\Models\Dataset','dataset_id');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,10 +2,21 @@
|
|||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable18 extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
use SoftDeletes;
|
||||
protected $table = 'dataset_table18';
|
||||
protected $primaryKey = 'DatasetTable18Id';
|
||||
|
||||
protected $guarded = [];
|
||||
|
||||
function dataset() {
|
||||
return $this->belongsTo('App\Models\Dataset','dataset_id');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,10 +2,21 @@
|
|||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable19 extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
use SoftDeletes;
|
||||
protected $table = 'dataset_table19';
|
||||
protected $primaryKey = 'DatasetTable19Id';
|
||||
|
||||
protected $guarded = [];
|
||||
|
||||
function dataset() {
|
||||
return $this->belongsTo('App\Models\Dataset','dataset_id');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,10 +2,21 @@
|
|||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable2 extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
use SoftDeletes;
|
||||
protected $table = 'dataset_table2';
|
||||
protected $primaryKey = 'DatasetTable2Id';
|
||||
|
||||
protected $guarded = [];
|
||||
|
||||
function dataset() {
|
||||
return $this->belongsTo('App\Models\Dataset','dataset_id');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,10 +2,21 @@
|
|||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable20 extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
use SoftDeletes;
|
||||
protected $table = 'dataset_table20';
|
||||
protected $primaryKey = 'DatasetTable20Id';
|
||||
|
||||
protected $guarded = [];
|
||||
|
||||
function dataset() {
|
||||
return $this->belongsTo('App\Models\Dataset','dataset_id');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,10 +2,21 @@
|
|||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable21 extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
use SoftDeletes;
|
||||
protected $table = 'dataset_table21';
|
||||
protected $primaryKey = 'DatasetTable21Id';
|
||||
|
||||
protected $guarded = [];
|
||||
|
||||
function dataset() {
|
||||
return $this->belongsTo('App\Models\Dataset','dataset_id');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,10 +2,21 @@
|
|||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable22 extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
use SoftDeletes;
|
||||
protected $table = 'dataset_table22';
|
||||
protected $primaryKey = 'DatasetTable22Id';
|
||||
|
||||
protected $guarded = [];
|
||||
|
||||
function dataset() {
|
||||
return $this->belongsTo('App\Models\Dataset','dataset_id');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,10 +2,21 @@
|
|||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable23 extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
use SoftDeletes;
|
||||
protected $table = 'dataset_table23';
|
||||
protected $primaryKey = 'DatasetTable23Id';
|
||||
|
||||
protected $guarded = [];
|
||||
|
||||
function dataset() {
|
||||
return $this->belongsTo('App\Models\Dataset','dataset_id');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,10 +2,21 @@
|
|||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable24 extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
use SoftDeletes;
|
||||
protected $table = 'dataset_table24';
|
||||
protected $primaryKey = 'DatasetTable24Id';
|
||||
|
||||
protected $guarded = [];
|
||||
|
||||
function dataset() {
|
||||
return $this->belongsTo('App\Models\Dataset','dataset_id');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,10 +2,21 @@
|
|||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable25 extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
use SoftDeletes;
|
||||
protected $table = 'dataset_table25';
|
||||
protected $primaryKey = 'DatasetTable25Id';
|
||||
|
||||
protected $guarded = [];
|
||||
|
||||
function dataset() {
|
||||
return $this->belongsTo('App\Models\Dataset','dataset_id');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,10 +2,21 @@
|
|||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable26 extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
use SoftDeletes;
|
||||
protected $table = 'dataset_table26';
|
||||
protected $primaryKey = 'DatasetTable26Id';
|
||||
|
||||
protected $guarded = [];
|
||||
|
||||
function dataset() {
|
||||
return $this->belongsTo('App\Models\Dataset','dataset_id');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,10 +2,21 @@
|
|||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable27 extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
use SoftDeletes;
|
||||
protected $table = 'dataset_table27';
|
||||
protected $primaryKey = 'DatasetTable27Id';
|
||||
|
||||
protected $guarded = [];
|
||||
|
||||
function dataset() {
|
||||
return $this->belongsTo('App\Models\Dataset','dataset_id');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,10 +2,21 @@
|
|||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable28 extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
use SoftDeletes;
|
||||
protected $table = 'dataset_table28';
|
||||
protected $primaryKey = 'DatasetTable28Id';
|
||||
|
||||
protected $guarded = [];
|
||||
|
||||
function dataset() {
|
||||
return $this->belongsTo('App\Models\Dataset','dataset_id');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,10 +2,21 @@
|
|||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable29 extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
use SoftDeletes;
|
||||
protected $table = 'dataset_table29';
|
||||
protected $primaryKey = 'DatasetTable29Id';
|
||||
|
||||
protected $guarded = [];
|
||||
|
||||
function dataset() {
|
||||
return $this->belongsTo('App\Models\Dataset','dataset_id');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,10 +2,21 @@
|
|||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable3 extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
use SoftDeletes;
|
||||
protected $table = 'dataset_table3';
|
||||
protected $primaryKey = 'DatasetTable3Id';
|
||||
|
||||
protected $guarded = [];
|
||||
|
||||
function dataset() {
|
||||
return $this->belongsTo('App\Models\Dataset','dataset_id');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,10 +2,21 @@
|
|||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable30 extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
use SoftDeletes;
|
||||
protected $table = 'dataset_table30';
|
||||
protected $primaryKey = 'DatasetTable30Id';
|
||||
|
||||
protected $guarded = [];
|
||||
|
||||
function dataset() {
|
||||
return $this->belongsTo('App\Models\Dataset','dataset_id');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,10 +2,21 @@
|
|||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable31 extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
use SoftDeletes;
|
||||
protected $table = 'dataset_table31';
|
||||
protected $primaryKey = 'DatasetTable31Id';
|
||||
|
||||
protected $guarded = [];
|
||||
|
||||
function dataset() {
|
||||
return $this->belongsTo('App\Models\Dataset','dataset_id');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,10 +2,21 @@
|
|||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable32 extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
use SoftDeletes;
|
||||
protected $table = 'dataset_table32';
|
||||
protected $primaryKey = 'DatasetTable32Id';
|
||||
|
||||
protected $guarded = [];
|
||||
|
||||
function dataset() {
|
||||
return $this->belongsTo('App\Models\Dataset','dataset_id');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,10 +2,21 @@
|
|||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable33 extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
use SoftDeletes;
|
||||
protected $table = 'dataset_table33';
|
||||
protected $primaryKey = 'DatasetTable33Id';
|
||||
|
||||
protected $guarded = [];
|
||||
|
||||
function dataset() {
|
||||
return $this->belongsTo('App\Models\Dataset','dataset_id');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,10 +2,21 @@
|
|||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable34 extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
use SoftDeletes;
|
||||
protected $table = 'dataset_table34';
|
||||
protected $primaryKey = 'DatasetTable34Id';
|
||||
|
||||
protected $guarded = [];
|
||||
|
||||
function dataset() {
|
||||
return $this->belongsTo('App\Models\Dataset','dataset_id');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,10 +2,21 @@
|
|||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable35 extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
use SoftDeletes;
|
||||
protected $table = 'dataset_table35';
|
||||
protected $primaryKey = 'DatasetTable35Id';
|
||||
|
||||
protected $guarded = [];
|
||||
|
||||
function dataset() {
|
||||
return $this->belongsTo('App\Models\Dataset','dataset_id');
|
||||
}
|
||||
}
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue