/** * @param \HorseStories\Models\Users\User $user * @return \HorseStories\Models\Statuses\Status[] */ public function getFeedForUser(User $user) { $horseIds = $user->follows()->lists('horse_id'); $horseIds[] = $user->horses()->lists('id')->all(); return $this->status->with('comments')->whereIn('horse_id', array_flatten($horseIds))->latest()->get(); }