app->environment('local', 'testing')) { $this->app->register(DuskServiceProvider::class); } $this->app->bind(StripePaymentGateway::class, function () { return new StripePaymentGateway(config('services.stripe.secret')); }); $this->app->bind(HashidsTicketCodeGenerator::class, function () { return new HashidsTicketCodeGenerator(config('app.ticket_code_salt')); }); $this->app->bind(PaymentGateway::class, StripePaymentGateway::class); $this->app->bind(OrderConfirmationNumberGenerator::class, RandomOrderConfirmationNumberGenerator::class); $this->app->bind(InvitationCodeGenerator::class, RandomOrderConfirmationNumberGenerator::class); $this->app->bind(TicketCodeGenerator::class, HashidsTicketCodeGenerator::class); } }