Skip to main content

HDInnovations/UNIT3D-Community-Edition

2255 stars
1 code files
View HDInnovations/UNIT3D-Community-Edition on GitHub

app/Http/Livewire/BackupPanel.php

Open in GitHub
use Livewire\Component;
 
class BackupPanel extends Component
{
//
final public function deleteFile(): void
{
//
$this->files = collect($this->files)
->reject(fn ($file) => $file['path'] === $deletingFile['path']
&& $file['date'] === $deletingFile['date']
&& $file['size'] === $deletingFile['size'])
->values()
->all();
}
//
}

We'd Love Your Feedback

Tell us what you like or what we can improve

Feel free to share anything you like or dislike about this page or the platform in general.