Files
eatvio-infra/app/Livewire/Counter.php
2024-01-15 01:05:10 +03:00

27 lines
373 B
PHP

<?php
namespace App\Livewire;
use Livewire\Component;
use Illuminate\View\View;
class Counter extends Component
{
public int $count = 0;
public function inc(): void
{
$this->count++;
}
public function dec(): void
{
$this->count--;
}
public function render(): View
{
return view('livewire.counter');
}
}