$image = getimagesize($request->image);
$width = $image[0];
$height = $image[1];
$path = storage_path() . '/app/public/uploads/users/' . Hashids::encode($User->id) . '/' . $file_temp_name;
$img = Image::make($file)->fit(1024);
$img->save($path);
// import
use Image;
// image resize with laravel image intervention
$img = $request->file('profile_image');
$image = $request->profile_image->extension();
$imageName = uniqid() . '.' . $image;
$image_resize = Image::make($img->getRealPath());
$image_resize->resize(636,852);
$path = 'uploads/' . $imageName;
$image_resize->save($path);
$imageUri = 'uploads/' . $imageName;