Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

podcastrelay@gmail.com's avatar

How can I Use two Vendor Directories in php laravel app

hello friends

I have an app which has a vendor directory. Also I want to apply below method in my app.

artisansweb# how-to-upload-video-on-youtube-in-laravel-application/

But when i run below command, it overwrites my packages. And my app doesn't work,. So i want to keep path for this vendor separate. is there any way to use two vendor dirs. calling from different paths in composer etc?

php artisan vendor:publish --provider="Dawson\Youtube\YoutubeServiceProvider"

I am not a developer. so don't have much idea. Seeking help.

Thanks.

0 likes
1 reply
jlrdw's avatar

I have an app which has a vendor directory

Install in your laravel app, and vendor files should be properly placed.

Please or to participate in this conversation.