<?php

namespace App\Livewire\Works\Concerns;

use App\Models\Work;

trait ReloadsWorkShow
{
    protected function reloadWork(): void
    {
        $this->work = Work::query()
            ->with(Work::relationsForWorkShow())
            ->findOrFail($this->work->id);
    }
}
