spatie / laravel-glide

Easily convert images with Glide
https://freek.dev/2015/12/easily-convert-images-with-glide/
MIT License
424 stars 51 forks source link

route code #44

Closed amin101 closed 8 years ago

amin101 commented 8 years ago

hi , how should i implement code in routes.php to process image? this is my code but it doesnt work

$server = League\Glide\ServerFactory::create([
    'source' => 'images/offer',
    'cache' => 'images/cache',
]);
Route::match(['get','post'],'img/{other?}', function(\Illuminate\Http\Request $request){
   /$server->outputImage($request);

});
freekmurze commented 8 years ago

When glancing your code example I see that /$server is a syntax error.

Your question does not concern this package, but Glide itself. If you have further issue concerning this code, you should post your issue there.