mirror of
https://github.com/CachetHQ/Cachet.git
synced 2025-02-23 11:16:05 +01:00
39 lines
767 B
PHP
39 lines
767 B
PHP
<?php
|
|
|
|
class HomeController extends Controller
|
|
{
|
|
/**
|
|
* The component instance.
|
|
*
|
|
* @var \Component
|
|
*/
|
|
protected $component;
|
|
|
|
/**
|
|
* Create a new home controller instance.
|
|
*
|
|
* @param \Component $component
|
|
*
|
|
* @return void
|
|
*/
|
|
public function __construct(Component $component)
|
|
{
|
|
$this->component = $component;
|
|
}
|
|
|
|
/**
|
|
* Returns the rendered Blade templates.
|
|
*
|
|
* @return \Illuminate\View\View
|
|
*/
|
|
public function showIndex()
|
|
{
|
|
$components = Component::orderBy('order')->orderBy('created_at')->get();
|
|
|
|
return View::make('index', [
|
|
'components' => $components,
|
|
'pageTitle' => Setting::get('app_name')
|
|
]);
|
|
}
|
|
}
|