Compare commits
1 Commits
f117c95dc6
...
87f7581aca
Author | SHA1 | Date | |
---|---|---|---|
87f7581aca |
@ -1,25 +0,0 @@
|
||||
<?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');
|
||||
}
|
||||
}
|
@ -22,7 +22,6 @@ public function definition()
|
||||
'shipping_address' => $address,
|
||||
'billing_address' => $address,
|
||||
'phone' => $this->faker->phoneNumber(),
|
||||
|
||||
'created_at' => Carbon::now(),
|
||||
'updated_at' => Carbon::now(),
|
||||
];
|
||||
|
@ -20,7 +20,6 @@ public function definition(): array
|
||||
return [
|
||||
'created_at' => Carbon::now(),
|
||||
'updated_at' => Carbon::now(),
|
||||
// 'internal_po' => $this->faker->randomNumber(4, true),
|
||||
'customer_po' => $this->faker->randomNumber(6, true),
|
||||
'order_type' => $this->faker->randomElement(OrderType::cases())->value,
|
||||
'order_date' => $order_date,
|
||||
|
@ -4,7 +4,8 @@
|
||||
"binary_operator_spaces": {
|
||||
"default": "single_space",
|
||||
"operators": {
|
||||
"=>": "align_single_space_minimal"
|
||||
"=>": "align_single_space_minimal",
|
||||
"=": "align_single_space_minimal"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +0,0 @@
|
||||
<div>
|
||||
<h1>{{ $count }}</h1>
|
||||
|
||||
<button wire:click="increment">+</button>
|
||||
|
||||
<button wire:click="decrement">-</button>
|
||||
</div>
|
Loading…
x
Reference in New Issue
Block a user