Paul Couture
c4398c641e
Prepping for launch. Reviewed-on: #1 Co-authored-by: Paul Couture <paul@paulcouture.com> Co-committed-by: Paul Couture <paul@paulcouture.com>
26 lines
337 B
PHP
26 lines
337 B
PHP
<?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');
|
|
}
|
|
}
|