I think you can do this in the boot() of your own service provider
App::register('ThirdPartyApp\Providers\ThirdPartyServiceProvider');
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.
facade can also be loaded by the AliasLoader
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.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community