mirror of
https://github.com/CachetHQ/Cachet.git
synced 2025-02-24 03:34:12 +01:00
24 lines
454 B
PHP
24 lines
454 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()]);
|
|
}
|
|
}
|