Route::get('/linkstorage', function () {
Artisan::call('storage:link');
});
use IlluminateSupportFacadesFile;
File::link(
storage_path('app/public'), public_path('storage')
);
//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);
}