Ejemplo n.º 1
0
 public function searchAddressDelivery(Request $request)
 {
     $addressService = new addressService();
     $search = $request->input('search');
     $type = $request->input('type');
     $return['ok'] = 0;
     try {
         $return['items'] = $addressService->searchAddressDelivery($search, $type, $this->_user->id);
         $return['ok'] = 1;
     } catch (\Exception $e) {
         // @codeCoverageIgnoreStart
         $return['error'] = $e->getMessage();
         $return['errorMsg'] = $e->getMessage();
         // @codeCoverageIgnoreEnd
     }
     return response()->json($return);
 }