File manager - Edit - /var/www/payraty/helpdesk/common/Files/Actions/Deletion/RestoreEntries.php
Back
<?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(); $this->chunkChildEntries($entries, function ($chunk) { $this->entry->whereIn('id', $chunk->pluck('id'))->restore(); event(new FileEntriesRestored($chunk->pluck('id')->toArray())); }); } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.30 | Generation time: 0.81 |
proxy
|
phpinfo
|
Settings