Skip to content

Instantly share code, notes, and snippets.

@acacha
Created February 15, 2022 08:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save acacha/bfde561838766cf2a23d888e5b0840d2 to your computer and use it in GitHub Desktop.
Save acacha/bfde561838766cf2a23d888e5b0840d2 to your computer and use it in GitHub Desktop.
Exemple de codi Laravel amb Intervention Image per tal de modificar la mida d'una imatge
$imageContents = Storage::disk('public')->get($this->concert->poster_image_path);
$image = Image::make($imageContents);
$image->resize(600)->encode();
Storage::disk('public')->put($this->concert->poster_image_path, (string) $image);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment