/** * Display the specified resource. * * @param int $id * @return Response */ public function show($id) { if (is_numeric($id)) { $root = Root::with(['etymology', 'cognates', 'tags'])->findOrFail($id); } else { $root = Root::with(['etymology', 'cognates', 'tags'])->where('root_slug', $id)->firstOrFail(); } return $this->res->includes(['etymology', 'cognates', 'tags'])->item($root)->send(); }