Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

how to delete a file in laravel

// Delete a single file
File::delete($filename);

// Delete multiple files
File::delete($file1, $file2, $file3);

// Delete an array of files
$files = array($file1, $file2);
File::delete($files);

//And don't forget to add at the top:
use IlluminateSupportFacadesFile; 
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #delete #file #laravel
ADD COMMENT
Topic
Name
5+3 =