Closed notflip closed 8 years ago
The create
-method cannot be used in conjunction with the facade. Could you try to replace the create
-method by setSourceFile
? Please let me know if that works for you.
I'll update the docs to make this more clear.
It's also giving an error (sorry for the late reply)
FatalErrorException in Facade.php line 218:
Call to undefined method Spatie\Glide\GlideImage::setSourceFile()
This is the code i'm using to test
Route::get('/img/{path}', function($path) {
GlideImage::setSourceFile($path)->outputImage($path, ['w' => 300, 'h' => 400]);
});
Are you using the latest version of this package (v3)?
"spatie/laravel-glide": "^2.2". I'll take a look at the latest version. Thank you
Hello @notflip Please include the line at the top of the route.php
use Spatie\Glide\GlideImage;
Immediatly after install I get the following error when testing in my routes.
I followed the installation instructions, any idea what I might be doing wrong?