how to resolve an error to use spatie laravel

99封情书 提交于 2020-06-29 04:08:25

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!