Support the ongoing development of Laravel.io →
Configuration Installation Packages
Last updated 2 years ago.
0

You can use type hinting and laravel will resolve GameQ for you. Another option is to use it directly $GameQ = new \GameQ\GameQ();.

If you still want to use service provider you can register binding for \GameQ\GameQ in your AppServiceProvider.php or in a separate one. Snippet

After that you can make a facade, or use automatic Facade

Last updated 7 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Ergi Ymeri Ergi Ymeri ergiymeri Joined 19 Jun 2017

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.