Commanding code that deletes excel file

This commit is contained in:
marcio1002 2023-10-23 12:18:39 -03:00
parent 703ef9dcf7
commit 3557d45273

View File

@ -149,7 +149,7 @@ class UserController extends Controller
Excel::import(new UsersWithSmartUsersImport($file_logos), $user_imports_path, $driver); Excel::import(new UsersWithSmartUsersImport($file_logos), $user_imports_path, $driver);
Storage::disk($driver)->delete($filename); // Storage::disk($driver)->delete($filename);
return response() return response()
->json(['message' => 'Dados importados com sucesso!']) ->json(['message' => 'Dados importados com sucesso!'])