From 21722479d0dd6a2e414a923f600c8e8c99200af1 Mon Sep 17 00:00:00 2001 From: Novy San87 Date: Fri, 7 Aug 2026 15:11:48 +0700 Subject: [PATCH] =?UTF-8?q?fix(api):=20file=5Furl=20SP=20&=20url=20foto=20?= =?UTF-8?q?bukti=20kini=20pakai=20prefix=20storage/=20=E2=80=94=20perbaiki?= =?UTF-8?q?=20unduh=20PDF=20yang=20nyasar=20ke=20halaman=20login?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Controllers/Api/ParentStudentController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/Api/ParentStudentController.php b/app/Http/Controllers/Api/ParentStudentController.php index 3d2eeaa..9c90534 100644 --- a/app/Http/Controllers/Api/ParentStudentController.php +++ b/app/Http/Controllers/Api/ParentStudentController.php @@ -608,7 +608,7 @@ class ParentStudentController extends Controller ] : null, 'evidences' => $v->evidences->map(fn ($e) => [ 'id' => $e->id, - 'url' => url($e->file_path), + 'url' => url('storage/' . $e->file_path), 'mime_type' => $e->mime_type, ])->all(), ]; @@ -653,7 +653,7 @@ class ParentStudentController extends Controller 'status' => $sp->status, 'total_points_at_time' => $sp->total_points_at_time, 'violations_included' => $sp->violations_included, - 'file_url' => $sp->file_path ? url($sp->file_path) : null, + 'file_url' => $sp->file_path ? url('storage/' . $sp->file_path) : null, 'created_at' => $sp->created_at?->toISOString(), 'delivered_at' => $sp->delivered_at?->toISOString(), ];