I store my images now in the app/storage folder. But i cant show the picture:
$sportler->image->url('medium'); returns the path to the image = "/system/Sportler/images/000/000/023/medium/z2.1.png"
routes.php
Route::get('/images/{path}', function($path) {
$path = storage_path().'/uploads'.$path;
$response = Response::make(
File::get($path),
200
);
$response->header(
'Content-type',
'image/png'
);
return $response;
});
But if i try to open the route and get the image it doesn't work
{{HTML::image('/images/'.$sportler->image->url('medium'), $alt="Photo", $attributes = array()) }}
How can i return the rsponse by calling the route to get the image?