Support for Cloud Storage (#4565)
Support for Cloud Storage (#4565)

* Support for Cloud Storage

Support for Cloud Storage (Google Bucket/Amazon S3) without breaking local and public storage

* Update VoyagerMediaController.php

* Update VoyagerMediaController.php

* Update VoyagerMediaController.php

* Update VoyagerMediaController.php

* Fix Media Manager for Cloud storage

Fixed by MrCrayon. https://github.com/the-control-group/voyager/compare/1.3...MrCrayon:03f2af479612e20718cacfcf4c5240b2e982049b
Image can't read from cloud so we need to get open the image with Storage and pass the content to Image, inverted process for saving.
Storage should be used without $realPath.
$image->encode()->encoded returns the image as string.

* Fix Media Manager for Cloud storage

Fixed by MrCrayon. the-control-group/voyager@1.3...MrCrayon:03f2af479612e20718cacfcf4c5240b2e982049b
Image can't read from cloud so we need to get open the image with Storage and pass the content to Image, inverted process for saving.
Storage should be used without $realPath.
$image->encode()->encoded returns the image as string.

* Fix Media Manager for Cloud storage

Fixed by MrCrayon. the-control-group/voyager@1.3...MrCrayon:03f2af479612e20718cacfcf4c5240b2e982049b
Image can't read from cloud so we need to get open the image with Storage and pass the content to Image, inverted process for saving.
Storage should be used without $realPath.
$image->encode()->encoded returns the image as string.

* Support for Cloud Storage

Fixed by MrCrayon. the-control-group/voyager@1.3...MrCrayon:03f2af479612e20718cacfcf4c5240b2e982049b
Image can't read from cloud so we need to get open the image with Storage and pass the content to Image, inverted process for saving.
Storage should be used without $realPath.
$image->encode()->encoded returns the image as string.

* Fix Media Manager for Cloud storage by MrCrayon

Fixed by MrCrayon. the-control-group/voyager@1.3...MrCrayon:03f2af479612e20718cacfcf4c5240b2e982049b
Image can't read from cloud so we need to get open the image with Storage and pass the content to Image, inverted process for saving.
Storage should be used without $realPath.
$image->encode()->encoded returns the image as string.

* Restored extra lines

Restored extra lines as request https://github.com/the-control-group/voyager/pull/4565#pullrequestreview-335267497

* Restored extra lines

Restored extra lines as requested by MrCrayon https://github.com/the-control-group/voyager/pull/4565#pullrequestreview-335267497

Co-authored-by: Christoph Schweppe <59bd0a3ff43b32849b319e645d4798d8a5d1e889@cschweppe.de>
the-control-group/voyager,the-control-group/voyager