Owl\Http\Controllers\StockController::index PHP Method

index() public method

Display a listing of the resource.
public index ( ) : Response
return Response
    public function index()
    {
        $user = $this->userService->getCurrentUser();
        $stocks = $this->stockService->getStockList($user->id);
        $templates = $this->templateService->getAll();
        return \View::make('stocks.index', compact('stocks', 'templates'));
    }