public function search() { $collection = Team::with('tournamentTeams.tournament')->where('name', 'like', Input::get('term') . '%')->get(); return $this->response->collection($collection, new TeamSearchTransformer(), 'teams'); }
public function show($id) { //show single $record = Team::with($this->related)->findOrFail($id); return $record; }