skip to Main Content

Laravel Service Container Binding Primitives Not Working For Mailchimp

We have the following binding Primitives use NZTimMailchimpMailchimp; use ReCaptchaReCaptcha; class AppServiceProvider extends ServiceProvider { /** * Register any application services. */ public function register(): void { app()->when(Mailchimp::class) ->needs('$apikey') ->give(config('services.mailchimp.apikey')); app()->when(ReCaptcha::class) ->needs('$secret') ->give(config('services.recaptcha.secret')); } } Recaptcha is working. But with…

VIEW QUESTION
Back To Top
Search