Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Scyllaly authored Mar 18, 2023
1 parent abf2384 commit 3ab3014
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,21 @@ composer require scyllaly/hcaptcha

In `app/config/app.php` add the following :

1- The ServiceProvider to the providers array :
Step 1: The ServiceProvider to the providers array :

```php
Scyllaly\HCaptcha\HCaptchaServiceProvider::class,
```

2- The class alias to the aliases array :
Step 2: The class alias to the aliases array :

```php
'HCaptcha' => Scyllaly\HCaptcha\Facades\HCaptcha::class,
```

3- Publish the config file
Step 3: Publish the config file

```ssh
```Shell
php artisan vendor:publish --provider="Scyllaly\HCaptcha\HCaptchaServiceProvider"
```

Expand Down Expand Up @@ -60,7 +60,7 @@ With [language support](https://docs.hcaptcha.com/configuration) or [onloadCallb
{!! HCaptcha::renderJs('fr', true, 'hcaptchaCallback') !!}
```

#### Display hCAPTCHA
#### Display hCaptcha

Default widget :

Expand Down Expand Up @@ -147,8 +147,8 @@ HCaptcha::shouldReceive('verifyResponse')
// POST request, with request body including `h-captcha-response`
$response = $this->json('POST', '/register', [
'h-captcha-response' => '1',
'name' => 'John',
'email' => 'john@example.com',
'name' => 'Scyllaly',
'email' => 'Scyllaly@example.com',
'password' => '123456',
'password_confirmation' => '123456',
]);
Expand Down

0 comments on commit 3ab3014

Please sign in to comment.