Skip to content

Commit

Permalink
Update ShopController.php
Browse files Browse the repository at this point in the history
  • Loading branch information
OhmygoodR authored Jan 29, 2024
1 parent baa0924 commit f35034d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/ShopController.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ 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
$resized_img=Image::make($filename)->resize(500,500);
$resized_img=Image::make('shops/'.$filename)->resize(500,500);
$resized_img->save('shops/resized-'.$filename);


Expand Down

0 comments on commit f35034d

Please sign in to comment.