Skip to content

Commit

Permalink
Update ShopController.php
Browse files Browse the repository at this point in the history
  • Loading branch information
DonaldFon authored Aug 17, 2024
1 parent 5c061ef commit a6a5b60
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/Http/Controllers/ShopController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
}
Expand Down

0 comments on commit a6a5b60

Please sign in to comment.