error('no term channel'); } $result = DhammaTerm::where('word', $param[0]) ->where('channal', $localTermChannel)->first(); if ($result) { return $this->ok("# {$result->meaning}\n {$result->note}"); } else { return $this->ok("# {$id}\n no record"); } } /** * Update the specified resource in storage. * * @return Response */ public function update(Request $request, DhammaTerm $dhammaTerm) { // } /** * Remove the specified resource from storage. * * @return Response */ public function destroy(DhammaTerm $dhammaTerm) { // } }