Files
eatvio-infra/app/Livewire/Diet/Comment/Show.php
2024-01-15 17:11:55 +03:00

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'];
}
}