Support the ongoing development of Laravel.io →
Installation Packages
Last updated 1 year ago.
0
Solution

I think you can do this in the boot() of your own service provider

App::register('ThirdPartyApp\Providers\ThirdPartyServiceProvider');
Last updated 1 year ago.
0

Thanks!

For the Facade I'm not sure how to accomplish this, though i'm not conviced it's a good pratice to use them inside a package anyway.

Last updated 1 year ago.
0

facade can also be loaded by the AliasLoader

source: http://fideloper.com/create-facade-laravel-4

Last updated 1 year ago.
0

I wouldn't load Facade in the ServiceProvider, but leave that to the user. It might conflict with other aliases. You shouldn't use the Facades in your serviceprovider/package, but just use the App container.

Last updated 1 year ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.