xxxxxxxxxx
// First of all add the File Facade at the top of the controller:
use Illuminate\Support\Facades\File;
$image_path = public_path("images/news/{$user->photo}");
if (File::exists($image_path)) {
File::delete($image_path);
//unlink($image_path);
}
// Delete an array of files
$files = array($file1, $file2);
File::delete($files);