首页 > 解决方案 > 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
     */

标签: laravellaravel-5youtube-api

解决方案


推荐阅读