mirror of
https://github.com/nothingworksinc/ticketbeast.git
synced 2026-01-26 03:04:05 +00:00
60 - The Moment of Truth
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
|
||||
namespace App\Providers;
|
||||
|
||||
use App\Billing\PaymentGateway;
|
||||
use App\Billing\StripePaymentGateway;
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
|
||||
class AppServiceProvider extends ServiceProvider
|
||||
@@ -23,6 +25,10 @@ class AppServiceProvider extends ServiceProvider
|
||||
*/
|
||||
public function register()
|
||||
{
|
||||
//
|
||||
$this->app->bind(StripePaymentGateway::class, function () {
|
||||
return new StripePaymentGateway(config('services.stripe.secret'));
|
||||
});
|
||||
|
||||
$this->app->bind(PaymentGateway::class, StripePaymentGateway::class);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -24,6 +24,6 @@ class DatabaseSeeder extends Seeder
|
||||
'date' => Carbon::parse('2016-12-13 8:00pm'),
|
||||
'ticket_price' => 3250,
|
||||
'additional_information' => "This concert is 19+.",
|
||||
]);
|
||||
])->addTickets(10);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user