main
Ilham Wara Nugroho 2025-10-02 14:24:46 +07:00
parent 2807c6cfad
commit 5eea26a34c
1 changed files with 1 additions and 0 deletions

View File

@ -30,6 +30,7 @@ use SoftDeletes;
return $dataset;
});
$years = $datasets->pluck('tahun')->toArray();
dd($years);
$model = self::with('dataset')->whereHas('dataset',function($query) use ($years){
$query->whereIn('tahun',$years);
})->where('dataset_id',$datasetId)->selectRaw('