Completed all tasks

This commit is contained in:
Thuan Bui
2025-05-11 09:47:13 +09:00
parent 5b954e6ab6
commit f97944f52e
7 changed files with 11402 additions and 1290 deletions
+3
View File
@@ -15,6 +15,9 @@ class ShopController extends Controller
// 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 = Image::make(storage_path('app/shops/' . $filename));
$image->resize(500, 500);
$image->save(storage_path('app/shops/resized-' . $filename));
return 'Success';
}