eating plan added

This commit is contained in:
Anatoliy Poloz
2022-07-27 14:53:16 +00:00
parent 0f1cafb518
commit a9601ab15d
146 changed files with 37111 additions and 127 deletions

View File

@@ -0,0 +1,28 @@
<?php
namespace App\Http\Livewire\Plan;
use Livewire\Component;
use App\Models\Plan;
class LikeCount extends Component
{
public Plan $plan;
protected $listeners = ['liked' => '$refresh'];
public function mount(Plan $plan)
{
$this->plan = $plan;
}
public function render()
{
return view(
'livewire.plan.like-count',
[
'count' => $this->plan->likes_count
]
);
}
}