update
parent
2807c6cfad
commit
5eea26a34c
|
|
@ -30,6 +30,7 @@ use SoftDeletes;
|
||||||
return $dataset;
|
return $dataset;
|
||||||
});
|
});
|
||||||
$years = $datasets->pluck('tahun')->toArray();
|
$years = $datasets->pluck('tahun')->toArray();
|
||||||
|
dd($years);
|
||||||
$model = self::with('dataset')->whereHas('dataset',function($query) use ($years){
|
$model = self::with('dataset')->whereHas('dataset',function($query) use ($years){
|
||||||
$query->whereIn('tahun',$years);
|
$query->whereIn('tahun',$years);
|
||||||
})->where('dataset_id',$datasetId)->selectRaw('
|
})->where('dataset_id',$datasetId)->selectRaw('
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue