forked from eatvio/eatvio-infra
init commit
This commit is contained in:
25
app/Http/Livewire/Counter.php
Normal file
25
app/Http/Livewire/Counter.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Livewire;
|
||||
|
||||
use Livewire\Component;
|
||||
|
||||
class Counter extends Component
|
||||
{
|
||||
public $count = 0;
|
||||
|
||||
public function inc()
|
||||
{
|
||||
$this->count++;
|
||||
}
|
||||
|
||||
public function dec()
|
||||
{
|
||||
$this->count--;
|
||||
}
|
||||
|
||||
public function render()
|
||||
{
|
||||
return view('livewire.counter');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user