Skip to content

Commit

Permalink
Update ShopController.php
Browse files Browse the repository at this point in the history
  • Loading branch information
OhmygoodR authored Sep 14, 2024
1 parent 9cf0d6f commit ce24b92
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/Http/Controllers/ShopController.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ public function store(Request $request)
// 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));

return 'Success';
}
}

0 comments on commit ce24b92

Please sign in to comment.