recipe = Recipe::where('id', $id)->first(); } /** * Get the view / contents that represent the component. * * @return \Illuminate\Contracts\View\View|\Closure|string */ public function render() { $recipe = $this->recipe; return view('components.recipe-card-small', compact('recipe')); } }