I am following the Laracast tutorial for handling image manipulation using Intervention. After adding it to my composer file and running composer update, I added it to my service providers and aliases as instructed in the installation guide. Also, I'm using Vagrant 1.7.4 and a Laravel virtual box called, Scotch Box 2.5.
However, I have not been able to successfully use Intervention in my app. Here is my sample route:
Route::get('foo', function() {
$image = Image::make('http://placehold.it/500x500/000/e8117f');
return Response::make($image->encode('jpg'), 200, ['Content-Type' => 'image/jpeg']);
});
When I visit the page in the browser, all I see is a broken image icon. And I'm really confused as to why the developer inspector tool in Chrome displays:
<img style="-webkit-user-select: none" src="http://192.168.33.10/public/foo">