现有查询语句如下:
$results = request()->user()->load(['tariff' => function($query){
$query->has('tags')->with(['tags' => function($query){
$query->has('children')->with(['children' => function($query){
$query->has('videos')->with(['videos' => function($query){
$query->where('enable', 1);
}]);
}])->where('enable', 1);
}])->where('enable', 1);
}]);
嵌套太多了,如何优雅的编写?求赐教