You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
<?php
|
|
|
|
namespace App\Livewire;
|
|
|
|
use Livewire\Component;
|
|
|
|
class Counter extends Component
|
|
{
|
|
public $count = 1;
|
|
|
|
public function increment()
|
|
{
|
|
$this->count++;
|
|
}
|
|
|
|
public function decrement()
|
|
{
|
|
$this->count--;
|
|
}
|
|
|
|
public function render()
|
|
{
|
|
return view('livewire.counter');
|
|
}
|
|
}
|