Memperbaiki Conflict Staging dan Tender
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user