101 - Getting Started with Laravel Dusk

This commit is contained in:
Adam Wathan
2017-05-02 15:51:20 -04:00
parent 0bcdd67a81
commit 41fbdcae1a
11 changed files with 245 additions and 3 deletions

View File

@@ -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'));
});