问题
I am using spatie library in laravel lumen to create file into image. But it is giving error.
$destinationPath = storage_path('uploads');
$new_path = str_replace('\\', '/', $destinationPath);
Browsershot::url('https://www.example.com/')
->setScreenshotType('jpeg', 100)
->save($new_path);
Error is: The given path 'your storage file path' did not contain an extension. Please append an extension.
来源:https://stackoverflow.com/questions/62302857/how-to-resolve-an-error-to-use-spatie-laravel