unlink is a directory laravel
$destinationPath = 'your_path';
File::delete($destinationPath.'/your_file');
unlink is a directory laravel
$destinationPath = 'your_path';
File::delete($destinationPath.'/your_file');
how to delete a file in laravel
// Delete a single file
File::delete($filename);
// Delete multiple files
File::delete($file1, $file2, $file3);
// Delete an array of files
$files = array($file1, $file2);
File::delete($files);
//And don't forget to add at the top:
use Illuminate\Support\Facades\File;
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us