laravel - call_user_func_array() 期望参数 1 是一个有效的回调,类 'Google\Client' 没有方法 'getVideoInfo'
问题描述
我正在使用 Alaout 和 Dawson 包,当我得到信息时,我得到了这个错误。我试图缩短外墙,但我仍然无法弄清楚。这是具有功能的控制器
class VideoController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
$videos = Youtube::getVideoInfo('YbIkHQVpDJ8');
return view('content.videoindex', compact('videos'));
}
/**
* Show the form for creating a new resource.
*
* @return \Illuminate\Http\Response
*/
解决方案
推荐阅读
- sql - Sybase ASE:添加不带 DEFAULT 的 NOT NULL 列失败。为什么?
- javascript - 如何在预先给定的 div 中动态创建 div
- c# - 无法使用 log4net 登录到文件
- javascript - 我是否需要测试前端客户端应用程序进行的实际 API 调用?
- angularjs - 当焦点转移时,uib-typeahead 下拉菜单不会消失?
- ajax - 通过jquery ajax方法提交数据后引导模式未关闭
- android - 播种移动应用程序设计器 (MAD) 12C 缓存
- python - Python 列表和 for 循环。如何与我打算处理后续项目而不是仅第一个项目的 for 循环通信?
- javascript - 在不使用 innerHTML 的情况下将 html 元素动态添加到单元格中
- json - 如何让我的 Apex 类返回或“运行”一个 JSON?使用 APEX REST