From a6a5b60bd66d01f859bc5cd96216ab9182ae8d6b Mon Sep 17 00:00:00 2001 From: Donald <154738239+DonaldFon@users.noreply.github.com> Date: Sat, 17 Aug 2024 22:22:35 +0800 Subject: [PATCH] Update ShopController.php --- app/Http/Controllers/ShopController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/ShopController.php b/app/Http/Controllers/ShopController.php index 1570311a..b168711d 100644 --- a/app/Http/Controllers/ShopController.php +++ b/app/Http/Controllers/ShopController.php @@ -15,7 +15,8 @@ public function store(Request $request) // TASK: resize the uploaded image from /storage/app/shops/$filename // to size of 500x500 and store it as /storage/app/shops/resized-$filename // Use intervention/image package, it's already pre-installed for you - Image::make(storage_path('/app/shops/').$filename)->resize(500,500)->save(storage_path('/app/shops/resized-').$filename); + // Image::make(storage_path('/app/shops/').$filename)->resize(500,500)->save(storage_path('/app/shops/resized-').$filename); + // Image::make('storage/app/shops/'.$filename)->resize(500,500)->save('storage/app/shops/resized-'.$filename); return 'Success'; }