Closed erxsto closed 2 years ago
@erxsto Can you provide more details on how to reproduce the error?
In my project, I installed Alaouy & Dawson, one to upload video and the other to view video details. At the moment of uploading the video, it does not mark error. Then when I want to see the details, I get the error I mentioned. I add you how is my function: `<?php namespace App\Http\Controllers;
use Illuminate\Http\Request; use Dawson\Youtube\Facades\Youtube as YoutubeUpload; use Alaouy\Youtube\Facades\Youtube;
class VideoController extends Controller { /**
@return \Illuminate\Http\Response */ public function create() { return view('content/video'); }
/**
@return \Illuminate\Http\Response */ public function store(Request $request) { { $data = request()->validate([ 'title' => 'required|max:255', 'description' => 'required', 'video' => 'mimetypes:video/avi,video/mpeg,video/mp4' ]); $video = YoutubeUpload::upload($request->file('video')->getPathName(), [ 'title' => $request->input('title'), 'description' => $request->input('description') ]);
return "Video uploaded successfully. Video ID is ". $video->getVideoId();
}
}
/**
@return \Illuminate\Http\Response */ public function show($id) { // }
/**
@return \Illuminate\Http\Response */ public function edit($id) { // }
/**
@return \Illuminate\Http\Response */ public function update(Request $request, $id) { // }
/**
@erxsto Did you resolve your issue?
Al momento de dirigirme a mi vista, me salta este error