Penggantian Nomor asli pmipinan
This commit is contained in:
@@ -32,7 +32,9 @@ class VerifikasiAbsenHalamanController extends Controller
|
||||
|
||||
abort_unless($hasil['ok'], 403, 'Tautan tidak valid atau sesi sudah berakhir.');
|
||||
|
||||
$pengajuan = PengajuanPresensi::findOrFail($id);
|
||||
$pengajuan = PengajuanPresensi::find($id);
|
||||
|
||||
abort_unless($pengajuan, 404, 'Pengajuan tidak ditemukan.');
|
||||
|
||||
$namaFile = basename($img);
|
||||
$fileSah = array_filter([
|
||||
@@ -46,7 +48,7 @@ class VerifikasiAbsenHalamanController extends Controller
|
||||
|
||||
abort_unless(Storage::disk('public')->exists($path), 404, 'File tidak ditemukan.');
|
||||
|
||||
return Storage::disk('public')->response($path, $namaFile, [
|
||||
return response()->file(Storage::disk('public')->path($path), [
|
||||
'Content-Disposition' => 'inline; filename="'.$namaFile.'"',
|
||||
]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user