/** * Show a team * * @param int $id The id of the team * @return void */ public function show($id) { $team = Team::published()->findOrFail($id); $team->access_counter++; $team->save(); $this->title($team->title); $this->pageView('teams::show', compact('team')); }