//$image base64 image
$imageName = time() . 'ava.png';
$image = str_replace('data:image/png;base64,', '', $image);
$image = str_replace(' ', '+', $image);
Storage::disk('temp_avatar')->put($imageName, base64_decode($image));
for 自用,常用的slim 獲取方法為:
$image = json_decode($request->input('avatar'))->output->image;