$path = storage_path() . '/app/public/uploads/users/' . Hashids::encode($User->id) . '/' . $file_temp_name; $img = Image::make($file)->fit(1024); $img->save($path);