Some adjustments to show customer's logo.

This commit is contained in:
2025-02-01 13:05:29 +01:00
parent 922f3ae175
commit ba92198750
7 changed files with 36 additions and 7 deletions

View File

@@ -28,6 +28,11 @@ class OptionController extends Controller
$option->value = $value;
$option->save();
}
$arr = explode(';base64,', $request->company_logo);
$type = substr($arr[0], strpos($arr[0], '/') + 1);
file_put_contents(base_path('/public/storage/company_logo.'. $type), base64_decode($arr[1]));
return response()->json($request->all());
}
}