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