我正在尝试使用 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);
}
可能是什么解决方案。谢谢
最佳答案
我在 Laravel 6 上试过,它显示:“InvalidArgumentException:磁盘 [public2] 没有配置的驱动程序。”
我在 config/filesystem.php 上尝试过的内容
'public2' => [
'driver' => 'local',
'root' => storage_path('app'),
'url' => env('APP_URL') . '/public',
'visibility' => 'public',
],
然后尝试:
composer dump-autoload -o
仍然显示异常错误。
我可以知道我必须做什么吗?
十分感谢
已解决
php artisan config:clear
关于laravel - 磁盘 [视频] 没有配置的驱动程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59612172/