Exemplo n.º 1
0
 public function searchTagRelation(Request $request)
 {
     $tagService = new tagService();
     $typeId = $request->input('typeId');
     $name = $request->input('name');
     $return['ok'] = 0;
     try {
         if ($typeId && $name) {
             $return['ok'] = 1;
             $return['data'] = $tagService->searchTagRelation($name, $typeId);
         }
     } catch (\Exception $e) {
         // @codeCoverageIgnoreStart
         $return['error'] = $e->getMessage();
         $return['errorMsg'] = $e->getMessage();
         // @codeCoverageIgnoreEnd
     }
     return response()->json($return);
 }