public static function getTeamsArray() { $teamNames = []; foreach (TeamModel::all() as $key => $team) { array_push($teamNames, [$team->post_title => $team->post_title]); } return $teamNames; }
public function index() { return View::make('teams.archive')->with(array('teams' => TeamModel::all())); }