public function byProject($projectId) { $issues = Issue::byProject($projectId)->get(); $statuses = Issue\Status::all(); $types = CommentType::where('key_name', '!=', 'external')->get(); $this->setViewPath('issue.index'); $this->setJavascriptData(compact('issues', 'statuses', 'types')); }