youtube icon indicating copy to clipboard operation
youtube copied to clipboard

Facades names conflict with alaouy/Youtube

Open yassin-mokni opened this issue 6 years ago • 5 comments

Hi,

I am using your package for uploading and alaouy/Youtube package to get video info, in config/app.php I have 'YoutubeInfo' => Alaouy\Youtube\Facades\Youtube::class,
'YoutubeUpload' => Dawson\Youtube\Facades\Youtube::class, and in the controller I have

        $fullPathToVideo = $request->file->path();
        $uploaded_video = \YoutubeUpload::upload($fullPathToVideo, [
            'title'       => $request->name,
            'description' => $request->description,
        ],'unlisted');

        $videoData = \YoutubeInfo::getVideoInfo($uploaded_video->getVideoId());

but when I submit the form I get this error

ErrorException In /vendor/dawson/youtube/src/Youtube.php line 420 :
call_user_func_array() expects parameter 1 to be a valid callback, class 'Google_Client' does not have a method 'getVideoInfo'

is there a solution for this please ?

Thanks

yassin-mokni avatar Aug 28 '18 14:08 yassin-mokni

We are running into the same issue as @yassinMk. This package is great but it is definitely colliding with another useful package that allows you to a bunch of other Youtube API interaction. Any advice on a solution here?

devcflynn avatar Oct 17 '18 20:10 devcflynn

Might look into renaming this package, I'll get back to you ASAP on this.

joedawson avatar Oct 18 '18 08:10 joedawson

running into the same isssue any way to resolve?

MurtazaRangwala avatar Jul 19 '19 07:07 MurtazaRangwala

have you solved it? , I have the same problem

erxsto avatar Jul 18 '21 01:07 erxsto

i hear you but its been so long i dont even remember the project properly i dont have the access to the code anymore really sorry couldn't help you

On Sun, Jul 18, 2021 at 6:44 AM erxsto @.***> wrote:

have you solved it, I have the same problem?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/joedawson/youtube/issues/92#issuecomment-881981732, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMPD6SJTTEK7XAUNDOGYRJTTYITHRANCNFSM4FR6WYLA .

MurtazaRangwala avatar Jul 19 '21 02:07 MurtazaRangwala