Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

how to download file in laravel 8 delelete from directry

Storage::delete(Storage::files('backgrounds'));

$dirs = Storage::directories('backgrounds');

foreach ($dirs as $dir) {
    Storage::deleteDirectory($dir);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #download #file #laravel #delelete #directry
ADD COMMENT
Topic
Name
6+8 =