App\Http\Controllers\RecipesController::show PHP Méthode

show() public méthode

Display the specified resource.
public show ( Recipe $recipe ) : Response
$recipe app\models\Recipe
Résultat Response
    public function show(Recipe $recipe)
    {
        $recipeProject = $recipe->getProjects()->toArray();
        return view('recipes.show')->with('recipe', $recipe)->with('recipeProject', $recipeProject);
    }