public function index($horseSlug) { $horse = Horse::where('slug', $horseSlug)->firstOrFail(); $followers = $this->followsRepository->findForHorse($horse); return view('follows.index', compact('horse', 'followers')); }
public function index($horseSlug) { $horse = Horse::where('slug', $horseSlug)->firstOrFail(); return view('horses.info.index', compact('horse')); }
/** * @param string $value * @return \HorseStories\Models\Horses\Horse[] */ public function search($value) { return $this->horse->where('name', 'like', '%' . $value . '%')->get(); }