Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Laravel storage:link not working

//if You want ton delete file from storage use this
//get file /image   name from database
use Storage;
 $attr_delete = DB::table('product_images)->where(['id' =>'id'])->get();
 
if (Storage::exists('/public/media/' . $attr_delete[0]->attr_image))
 {
 Storage::delete('/public/media/' . $attr_delete[0]->attr_image);
}
 
PREVIOUS NEXT
Tagged: #Laravel #working
ADD COMMENT
Topic
Name
2+8 =