joedawson / youtube

Upload a video to a single YouTube channel with Laravel 5.
MIT License
175 stars 105 forks source link

Facades names conflict with alaouy/Youtube #92

Closed yassin-mokni closed 1 year ago

yassin-mokni commented 6 years ago

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

devcflynn commented 5 years ago

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?

joedawson commented 5 years ago

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

MurtazaRangwala commented 5 years ago

running into the same isssue any way to resolve?

erxsto commented 3 years ago

have you solved it? , I have the same problem

MurtazaRangwala commented 3 years ago

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 .