Skip to content

Commit

Permalink
Prepare for Laravel Octane
Browse files Browse the repository at this point in the history
  • Loading branch information
hedii committed Apr 8, 2021
1 parent e793e84 commit ca26288
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/RecaptchaServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ public function register(): void
{
$this->mergeConfigFrom(__DIR__ . '/../config/recaptcha.php', 'recaptcha');

$this->app->bind(Recaptcha::class, function () {
$this->app->bind(Recaptcha::class, function ($app) {
return new Recaptcha(
$this->app['request'],
$this->app['config']['recaptcha.site_key'],
$this->app['config']['recaptcha.secret_key'],
$this->app['config']['recaptcha.minimum_score']
$app['request'],
$app['config']['recaptcha.site_key'],
$app['config']['recaptcha.secret_key'],
$app['config']['recaptcha.minimum_score']
);
});

Expand Down

0 comments on commit ca26288

Please sign in to comment.