コード例 #1
0
 public function destroy($userId, $addressId)
 {
     if (Users::havePermission($userId)) {
         $data = $this->usersAddressRepository->destroy($userId, $addressId);
         return $this->jsonDataResponse($data);
     } else {
         return $this->jsonResponse(['status' => 'error', 'message' => 'Você não tem permissão para realizar esta ação >:(']);
     }
 }