Skip to content

Instantly share code, notes, and snippets.

@bvdputte
Created February 10, 2016 15:05
Show Gist options
  • Select an option

  • Save bvdputte/be49c6fc0a8cea172966 to your computer and use it in GitHub Desktop.

Select an option

Save bvdputte/be49c6fc0a8cea172966 to your computer and use it in GitHub Desktop.
Glide - laravel route
Route::get('img/{path}', function (League\Glide\Server $server, Illuminate\Http\Request $request) {
$server->outputImage($request->getPathInfo(), $request->query->all());
})->where('path', '.+');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment