mooseh's avatar

pulling in a vendor package?

whats the right way to add a vendor package to lumen?

Like in laravel you add it in config/app.php?

could someone give me an example? Thanks

0 likes
3 replies
KenoKokoro's avatar
Level 13

You can register the service provider on bootstrap/app.php, you have an example there.

Or in the providers folder, you can create your own ComposerServiceProvider that extends the illuminate Service provider, and just register them in the register method: $this->app->register(PackageServiceProvider::class);

Up to you.

1 like
mooseh's avatar

thanks guys perfect.

I tried the register but it failed because i hadnt included facades... and i just overlooked it silly me.

Thanks for your answers.

Please or to participate in this conversation.