public function getNews(){
return $this->hasMany(News::class, 'user_id');
}
$user = User::query()
->with('getNews')
->whereHas('getNews', function($query){
$query->limit(2);
})
->where('id', $id)
->first();