feat: Carrega clientes dinâmicamente.

This commit is contained in:
lukibeg 2025-11-16 21:50:15 -03:00
parent 5451f5c9ab
commit 3363e9eede
1 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,23 @@
<?php
namespace App\Livewire\Admin;
use App\Models\Client;
use Livewire\Component;
use Livewire\Attributes\On;
class ShowClient extends Component
{
#[On('clientDeleted')]
public function refreshClientList() {}
public function render()
{
$clients = Client::all();
return view('livewire.admin.show-client', [
'clients' => $clients
]);
}
}