我正在尝试使用 laravel 和 ffmpeg 创建缩略图。但是我收到这个错误。
磁盘 [视频] 没有配置的驱动程序。
我的代码
public function index()
{
FFMpeg::fromDisk('videos')
->open('steve_howe.mp4')
->getFrameFromSeconds(10)
->export()
->toDisk('thumnails')
->save('FrameAt10sec.png');
// $videos = Videos::where('user_email', Auth::user()->email)->get();
// return view('instructor.videos')->with('videost', $videos);
}
Run Code Online (Sandbox Code Playgroud)
什么可能是解决方案。谢谢
我在 PhpStorm 2019.3.1 中隐藏了菜单栏(主菜单)。我现在想显示它,但我不知道该怎么做。我有什么办法可以实现这一目标吗?
我正在尝试使用 axios 在我的应用程序中显示从 laravel 验证中获取的错误,但它一直显示此错误。控制器验证用户和任何未填写的字段。它将返回一个错误,该错误将使用 axios 显示在页面上。
错误:
VM12049:87 Uncaught (in promise) TypeError: Cannot read property '0' of undefined
at <anonymous>:87:80
(anonymous) @ VM12049:87
XMLHttpRequest.send (async)
(anonymous) @ VM12045:8
e.exports @ VM12045:8
e.exports @ VM12045:8
Promise.then (async)
r.request @ VM12045:8
r.<computed> @ VM12045:8
(anonymous) @ VM12045:2
updateProfile @ VM12049:68
(anonymous) @ VM12049:32
dispatch @ VM12044:2
v.handle @ VM12044:2
Run Code Online (Sandbox Code Playgroud)
我的代码
axios 代码
axios.post('/update-student-info', data, {
"x-csrf-token": $("[name=_token]").val(),
'content-type': 'multipart/form-data'
})
.then(response => {
if (response.status === 200) {
Swal.fire({
title: 'Information …Run Code Online (Sandbox Code Playgroud)