public function index(Request $request) { $page = $request->input('page', 1); $perPage = 10; $recipes = $this->recipe->byPage($page, $perPage); return view('recipes.index')->with('recipes', $recipes); }