Almacenamiento de PHP Artisan: el enlace no funciona
Route::get('/linkstorage', function () {
Artisan::call('storage:link');
});
Mohamad
Route::get('/linkstorage', function () {
Artisan::call('storage:link');
});
//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);
}