JFIFxxC      C  " }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr{ gilour

File "RestoreEntries.php"

Full Path: /home/markqprx/iniasli.pro/common-20260222054425/Files/Actions/Deletion/RestoreEntries.php
File size: 582 bytes
MIME-type: text/x-php
Charset: utf-8

<?php

namespace Common\Files\Actions\Deletion;

use Common\Files\Events\FileEntriesRestored;
use Illuminate\Support\Collection;

class RestoreEntries extends SoftDeleteEntries
{
    public function execute(Collection|array $entryIds): void
    {
        $entries = $this->entry
            ->onlyTrashed()
            ->whereIn('id', $entryIds)
            ->get();
        $entries = $this->loadChildEntries($entries, true);

        $this->entry->whereIn('id', $entries->pluck('id'))->restore();

        event(new FileEntriesRestored($entries->pluck('id')->toArray()));
    }
}