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 2ba3540 commit a34021d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Http/Controllers/ShopController.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +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
$resized_img=Image::make('app/shops/'.$filename)->resize(500,500);
$resized_img->save('app/shops/resized-'.$filename);
$resized_img=Image::make('storage/app/shops/'.$filename)->resize(500,500);
$resized_img->save('storage/app/shops/resized-'.$filename);


return 'Success';
Expand Down

0 comments on commit a34021d

Please sign in to comment.