fix: update storage paths for store logo and banner uploads to include 'upload/images'
All checks were successful
Deploy Production (crewsportswear.com) / deploy (push) Successful in 2m4s

This commit is contained in:
Frank John Begornia
2026-04-17 13:33:31 +08:00
parent 914e276026
commit bc5da01735

View File

@@ -967,11 +967,11 @@ class UserController extends Controller
// var_dump($res); // var_dump($res);
// if($res){ // if($res){
if ($request->file('store_logo') != null) { if ($request->file('store_logo') != null) {
Storage::disk('minio')->put('teamstore/' . $orig_store_url . '/' . $store_logo_name, file_get_contents($request->file('store_logo')->getRealPath())); Storage::disk('minio')->put('upload/images/teamstore/' . $orig_store_url . '/' . $store_logo_name, file_get_contents($request->file('store_logo')->getRealPath()));
} }
if ($request->file('store_banner') != null) { if ($request->file('store_banner') != null) {
Storage::disk('minio')->put('teamstore/' . $orig_store_url . '/' . $store_banner_name, file_get_contents($request->file('store_banner')->getRealPath())); Storage::disk('minio')->put('upload/images/teamstore/' . $orig_store_url . '/' . $store_banner_name, file_get_contents($request->file('store_banner')->getRealPath()));
} }
return response()->json(array( return response()->json(array(