From e4223e28bef982e86ecd589d43663dfb9aa0f7c2 Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Wed, 10 Dec 2025 16:50:34 +0530 Subject: [PATCH] Removed unneccessary arguments in part validation image route --- routes/web.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/routes/web.php b/routes/web.php index 336756d..ca8fd60 100644 --- a/routes/web.php +++ b/routes/web.php @@ -10,7 +10,7 @@ use Illuminate\Support\Facades\Mail; use Illuminate\Support\Facades\Route; use Illuminate\Http\Request; use thiagoalessio\TesseractOCR\TesseractOCR; -use App\Filament\Pages\CustomLogin; + Route::get('/', function () { return redirect('/admin'); @@ -25,8 +25,8 @@ use App\Filament\Pages\CustomLogin; ]); }); - Route::get('/part-validation-image/{plant}/{filename}', function ($plant, $filename) { - $path = storage_path("app/private/uploads/PartValidation/{$plant}/{$filename}"); + Route::get('/part-validation-image/{filename}', function ($filename) { + $path = storage_path("app/private/uploads/PartValidation/{$filename}"); if (!file_exists($path)) { abort(404, 'Image not found');