mirror of
https://github.com/CachetHQ/Cachet.git
synced 2025-02-24 11:43:33 +01:00
21 lines
446 B
PHP
21 lines
446 B
PHP
<?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' => $this->component->all()]);
|
|
}
|
|
}
|