Skip to content

Commit

Permalink
Merge pull request #510 from Nikita240/patch-2
Browse files Browse the repository at this point in the history
Cast the thumbnail object to a string when saving
  • Loading branch information
streamtw authored Jan 9, 2018
2 parents 87d0c9e + fd4e72d commit 1a4d718
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LfmPath.php
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,6 @@ public function makeThumbnail($file_name)
->fit(config('lfm.thumb_img_width', 200), config('lfm.thumb_img_height', 200))
->encode();

$this->setName($file_name)->thumb(true)->storage->save($image_content);
$this->setName($file_name)->thumb(true)->storage->save((string) $image_content);
}
}

0 comments on commit 1a4d718

Please sign in to comment.