Fixed rebase issues

This commit is contained in:
James Brooks
2014-12-01 16:46:56 +00:00
parent 7aec301ce6
commit 0fb39f34f8
6 changed files with 37 additions and 17 deletions

View File

@@ -1,11 +1,20 @@
<?php
class HomeController extends Controller {
/**
* @var Component $component
*/
protected $component;
public function __construct(Component $component) {
$this->component = $component;
}
/**
* Returns the rendered Blade templates.
* @return \Illuminate\View\View
*/
public function showIndex() {
return View::make('index', ['components' => Component::all()]);
return View::make('index', ['components' => $this->component->all()]);
}
}