Created
February 24, 2015 13:32
-
-
Save andreoav/d1104fad7bf75e75c985 to your computer and use it in GitHub Desktop.
Download images.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Static images | |
*/ | |
get('static/images/{imgName}', function($imgName) { | |
$myImage = Image::make(storage_path() . '/app/' . $imgName); | |
return $myImage->response(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment