I'm trying to serve a cached image but I'm only getting a broken image link. How come?
$cachedImage = Image::cache(function($img) {
return $img->make('http://cdn.smosh.com/sites/default/files/ftpuploads/bloguploads/twilight-meme-scumbag-edward.jpg');
}, 10, true);
return Response::make($cachedImage, 200, array('Content-Type' => $cachedImage->mime));
This is my result:
And this should be the result:
Have anyone experienced the same before?
I know this is old, but true returns the Intervention object on the cache function.
So now you can just return $cachedImage->response();
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community