recipe = Recipe::query()->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('fo.components.recipe-card', compact('recipe')); } }