/** * Display the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function show(Club $club) { $data = array('name' => $club->name, 'location' => $club->location()->pluck('name')); return $data; }
/** * Display the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function show(Club $club) { $data = array('name' => $club->name, 'location' => $club->location()->pluck('name')); return $data; }