Gitamin\Http\Controllers\Projects\IssueController::index PHP Method

index() public method

public index ( $owner, $project )
    public function index($owner, $project)
    {
        $repository = $project->getRepository();
        $commitishPath = $repository->getHead();
        list($branch, $file) = $this->extractReference($repository, $commitishPath, $project->slug);
        $dc = app('dc');
        $dc->pushCriteria(new BelongsToProject($project->id));
        $issues = $dc->model(Issue::class)->getIssuesList();
        return View::make('projects/issues/index')->withOwner($owner)->withProject($project)->withBranch($branch)->withIssues($issues);
    }