stuck in deleting the file I am saving into storage directory. My confs as shown below.
config/filesystems
'public' => [
'driver' => 'local',
'root' => storage_path('app/public'),
'url' => env('APP_URL').'/storage',
'visibility' => 'public',
],
this is how I am saving the image.
if ($request->hasFile('image'))
{
$image = $request->file('image');
Storage::disk('public')->put("/uploads/".$image->hashName(), File::get($image));
$input['image'] = 'uploads/' . $image->hashName();
}
I am using Laravel 7 and the image is being successfully uploaded, can anyone please suggest me the best way to remove the files stored in there.