From b586ea6eaf280b7c3a5eb547f675d39d23ad2bfd Mon Sep 17 00:00:00 2001 From: hmdee Date: Thu, 28 Nov 2024 12:26:37 +0200 Subject: [PATCH] ccc --- app/Http/Controllers/ProjectController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/ProjectController.php b/app/Http/Controllers/ProjectController.php index 84d1399..4724e6e 100644 --- a/app/Http/Controllers/ProjectController.php +++ b/app/Http/Controllers/ProjectController.php @@ -17,7 +17,7 @@ public function store(Request $request) // TASK: change the below line so that $filename would contain only filename // The same filename as the original uploaded file - $filename = $request->file('logo')->getClientOriginalName(); + $filename = $request->logo->getClientOriginalName(); $request->file('logo')->storeAs('logos', $filename); Project::create([