diff --git a/app/Http/Controllers/IngredientController.php b/app/Http/Controllers/IngredientController.php
index 9b6e9da..a0ce9af 100644
--- a/app/Http/Controllers/IngredientController.php
+++ b/app/Http/Controllers/IngredientController.php
@@ -12,11 +12,12 @@ class IngredientController extends Controller
/**
* Display a listing of the resource.
*
- * @return \Illuminate\Http\Response
+ * @return \Illuminate\Contracts\View\View
*/
- public function index()
+ public function index(): View
{
- //
+ return view('ingredients.index')
+ ->with('ingredients', Ingredient::all()->sortBy('name'));
}
/**
@@ -29,7 +30,7 @@ class IngredientController extends Controller
return view('ingredients.create');
}
- /**
+ /**newly
* Store a newly created resource in storage.
*/
public function store(Request $request): RedirectResponse
diff --git a/resources/views/ingredients/index.blade.php b/resources/views/ingredients/index.blade.php
new file mode 100644
index 0000000..5d2edc3
--- /dev/null
+++ b/resources/views/ingredients/index.blade.php
@@ -0,0 +1,54 @@
+
+ {{ __('List Ingredients') }}
+
+