Owl\Http\Controllers\IndexController::index PHP Метод

index() публичный Метод

public index ( )
    public function index()
    {
        $kind = \Input::get('kind') ?: 'stock';
        if ($kind === 'all') {
            $items = $this->itemService->getAllPublished();
        } elseif ($kind === 'flow') {
            $items = $this->itemService->getAllFlowPublished();
        } else {
            $kind = 'stock';
            $items = $this->itemService->getAllStockPublished();
        }
        $templates = $this->templateService->getAll();
        $ranking_stock = $this->stockService->getRankingWithCache(5);
        return \View::make('index.index', compact('kind', 'items', 'templates', 'ranking_stock'));
    }
IndexController