forked from eatvio/eatvio-infra
27 lines
373 B
PHP
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');
|
|
}
|
|
}
|