diff --git a/app/controllers/HomeController.php b/app/controllers/HomeController.php index b09daa15..f325c063 100644 --- a/app/controllers/HomeController.php +++ b/app/controllers/HomeController.php @@ -6,6 +6,6 @@ * @return View */ public function showIndex() { - return View::make('index'); + return View::make('index', ['components' => Component::all()]); } } diff --git a/app/views/index.blade.php b/app/views/index.blade.php index 0e12f0ac..51ff5655 100644 --- a/app/views/index.blade.php +++ b/app/views/index.blade.php @@ -7,9 +7,10 @@
You're logged in. This will be a link to the Dashboard.
@endif + @if($components->count() > 0){{ $component->description }}
@@ -17,6 +18,7 @@ @endforeach