public function run() { //$faker = Faker::create(); $statuses = array('Open', 'Closed', 'Resolved'); foreach ($statuses as $status) { BugStatus::create(array('name' => $status)); } }
/** * 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')); }