Closed commandantp closed 3 years ago
I have a similar setup with Laravel 5.2 and it seems to work. I'm relying on local storage instead of S3. Are you including the "league/glide-laravel" package in composer?
use League\Flysystem\Filesystem;
use League\Flysystem\Adapter\Local;
...
public function register()
{
$this->app->singleton('League\Glide\Server', function($app) {
$filesystem = new Filesystem(new Local(public_path()));
$factory = $app->make('League\Glide\Responses\LaravelResponseFactory');
return ServerFactory::create([
'response' => $factory,
'source' => $filesystem,
'cache' => $filesystem,
'cache_path_prefix' => '.cache',
'base_url' => '/img/'
]);
});
}
Hi! I'm on Laravel 5.1 and Glide 0.3.6. Trying to upgrade to 1.2.2 I update composer with the new version and modified the code to get the following with the
response
. However I keep getting aLeague\Glide\Responses\LaravelResponseFactory
Class does not exist.Anything particular I'm missing? I've been reading the docs & issues but didn't find anything. Thanks!!