$recipe->author()->first(), 'tags' => $recipe->tags()->get(), 'recipe' => $recipe, ]; $expiresAt = now()->addHours(24); views($recipe) ->cooldown($expiresAt) ->record(); return view('recipe/show', $data); } /** * Show the form for editing the specified resource. * * @return \Illuminate\Http\Response */ public function edit(Recipe $recipe) { return view('recipe/edit_form', ['recipe' => $recipe]); } }