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. * * @param \Illuminate\Http\Request $request * @param \App\Models\DhammaTerm $dhammaTerm * @return \Illuminate\Http\Response */ public function update(Request $request, DhammaTerm $dhammaTerm) { // } /** * Remove the specified resource from storage. * * @param \App\Models\DhammaTerm $dhammaTerm * @return \Illuminate\Http\Response */ public function destroy(DhammaTerm $dhammaTerm) { // } }