Esempio n. 1
0
 public function adminTeamPage()
 {
     $data['page'] = 'me';
     $data['teams'] = Team::orderBy('name')->paginate(10);
     return View::make('admin.teams')->with($data);
 }
Esempio n. 2
0
 function team()
 {
     $members = Team::orderBy('priority')->orderBy(DB::raw('RAND()'))->get();
     $this->stylesheet('assets/stylesheets/team.css');
     $this->autoRender(compact('members'), 'Team');
 }
Esempio n. 3
0
 public function getIndex()
 {
     $this->data['teams'] = Team::orderBy('name', 'asc')->paginate(18);
     $this->layout->content = View::make($this->view . '.teams', $this->data);
 }