forked from eatvio/eatvio-infra
24 lines
453 B
PHP
24 lines
453 B
PHP
<?php
|
|
|
|
namespace App\Livewire\Diet\Comment;
|
|
|
|
use App\Models\Diet;
|
|
use Illuminate\Contracts\View\Factory as ViewFactory;
|
|
use Illuminate\Contracts\View\View;
|
|
use Livewire\Component;
|
|
|
|
class Show extends Component
|
|
{
|
|
public Diet $diet;
|
|
|
|
public function render(): View|ViewFactory
|
|
{
|
|
return view('livewire.diet.comment.show');
|
|
}
|
|
|
|
protected function getListeners(): array
|
|
{
|
|
return ['commentAdded' => '$refresh'];
|
|
}
|
|
}
|