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