mirror of
https://github.com/nothingworksinc/ticketbeast.git
synced 2026-01-31 03:46:38 +00:00
101 - Getting Started with Laravel Dusk
This commit is contained in:
@@ -6,6 +6,7 @@ use App\TicketCodeGenerator;
|
||||
use App\Billing\PaymentGateway;
|
||||
use App\HashidsTicketCodeGenerator;
|
||||
use App\Billing\StripePaymentGateway;
|
||||
use Laravel\Dusk\DuskServiceProvider;
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
use App\OrderConfirmationNumberGenerator;
|
||||
use App\RandomOrderConfirmationNumberGenerator;
|
||||
@@ -29,6 +30,10 @@ class AppServiceProvider extends ServiceProvider
|
||||
*/
|
||||
public function register()
|
||||
{
|
||||
if ($this->app->environment('local', 'testing')) {
|
||||
$this->app->register(DuskServiceProvider::class);
|
||||
}
|
||||
|
||||
$this->app->bind(StripePaymentGateway::class, function () {
|
||||
return new StripePaymentGateway(config('services.stripe.secret'));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user