Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Delete an image laravel

//On top
use IlluminateSupportFacadesStorage;

//then
if(Storage::exists('your/path'.$file_name)){
  Storage::delete('your/path'.$file_name);
  /*
    Delete Multiple File like this way
    Storage::delete(['path/example.png', 'path/example2.png']);
  */
  return true;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Delete #image #laravel
ADD COMMENT
Topic
Name
9+1 =