Memperbaiki Conflict Staging dan Tender

This commit is contained in:
2024-09-25 17:35:59 +07:00
45 changed files with 4082 additions and 31 deletions

View File

@@ -127,7 +127,7 @@ class KJPPController extends Controller
if ($file !== null) {
// Jika ada file dari database maka hapus file yang lama ke file yang baru
$kjpp = KJPP::find($id);
// Storage::delete('public/uploads_pdf/' . $kjpp->attachment);
Storage::delete('public/uploads_pdf/' . $kjpp->attachment);
// Simpan file yang diunggah
$file->storeAs('public/uploads_pdf', $filename);
$validated['attachment'] = $filename;