Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

generateThumbs support for external disks #7

Closed
jeffgreco13 opened this issue Jun 22, 2022 · 1 comment
Closed

generateThumbs support for external disks #7

jeffgreco13 opened this issue Jun 22, 2022 · 1 comment

Comments

@jeffgreco13
Copy link

Possible solution in Media model under generateThumbs:

$image = Image::make(
    Storage::disk($this->record->disk)->url($media->filename)
);

...

Storage::disk($media->disk)->put(
				$pathinfo["dirname"] .
					"/" .
					$pathinfo["filename"] .
					"-" .
					$name .
					"." .
					$media->ext,
				$image->stream()
			);
@awcodes awcodes mentioned this issue Jun 22, 2022
@awcodes
Copy link
Owner

awcodes commented Jun 22, 2022

@awcodes awcodes closed this as completed Jun 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants