/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index(Request $request) { $breeds = Breed::Search($request->name)->paginate(10); return view('breed.index', compact('breeds')); }