$primaryLanguages = cache()->remember(
'search:languages',
3600,
fn () => \App\Models\Movie::select('original_language')
->distinct()
->orderBy('original_language')
->pluck('original_language')
)
DB::table('movies')
->select('original_language')
->distinct()
->union(DB::table('serials')->select('original_language')->distinct())
->get()
->pluck('original_language');
union
.