Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Deleting all files inside a directory laravel 8

use IlluminateFilesystemFilesystem;
$file = new Filesystem;
$file->cleanDirectory('storage/app/backgrounds');
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Deleting #files #directory #laravel
ADD COMMENT
Topic
Name
5+1 =