public function run()
 {
     $roles = array('Bug', 'Change Request', 'New Request');
     foreach ($roles as $role) {
         BugType::create(array('name' => $role));
     }
 }
 /**
  * Show the form for creating a new bug
  *
  * @return Response
  */
 public function create()
 {
     $bugTypes = BugType::getBugTypeList();
     $bugStatuses = BugStatus::getBugStatusList();
     $assignTo = User::getProgrammerDesigner()->getList();
     $this->layout->title = "Add Bug";
     $this->layout->content = View::make('bugs.create', compact('bugTypes', 'bugStatuses', 'assignTo', 'getAllBugs'));
 }
 public function getProjectsAndbugType($userId)
 {
     $projects = $this->project->byUser($userId)->active()->get(array('id', 'name'));
     $bugtypes = BugType::get(array('id', 'name'));
     return Response::JSON(array('projects' => $projects, 'bugtypes' => $bugtypes));
 }