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