Reduce security and reliability risk across the Proxmox extension by removing password exposure from Livewire state, hardening console auth/cookie handling, and improving sanitized error paths. Improve firewall and router performance by adding safer lazy loading, bounded pagination, cross-server compatibility guards, and lower-overhead API workflows. Made-with: Cursor
23 lines
571 B
PHP
23 lines
571 B
PHP
<?php
|
|
|
|
namespace Paymenter\Extensions\Servers\Proxmox\Livewire;
|
|
|
|
use App\Livewire\Component;
|
|
use Illuminate\Support\Facades\Auth;
|
|
use Paymenter\Extensions\Servers\Proxmox\Models\Server;
|
|
|
|
class Index extends Component
|
|
{
|
|
public function render()
|
|
{
|
|
return view('proxmox::index', [
|
|
'servers' => Server::where('user_id', Auth::id())
|
|
->with(['primaryIpv4', 'primaryIpv6', 'service.product', 'node'])
|
|
->orderBy('id')
|
|
->get(),
|
|
])->layoutData([
|
|
'sidebar' => true,
|
|
]);
|
|
}
|
|
}
|