Skip to content

Commit

Permalink
Middleware demo link is missing top subdirectory (#97)
Browse files Browse the repository at this point in the history
* Middleware demo link is missing top subdirectory

* Fix typo in "QRCode Backend" section

* Update Laravel references to 6.x + another typo
  • Loading branch information
cdn authored Apr 5, 2020
1 parent 5e990dc commit ed6e0a9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ You can scan the QR code on [this (old) demo page](https://antoniocarlosribeiro.
|---------|-----------|-------------------|
| 4.2 | <= 1.0.1 | |
| 5.0-5.1 | <= 1.0.1 | |
| 5.2-5.6 | >= 2.0.0 | >= 0.2.0 |
| 5.2-6.x | >= 2.0.0 | >= 0.2.0 |

Before Google2FA 2.0 (Laravel 5.1) you have to install `pragmarx/google2fa:~1.0`, because this package was both a Laravel package and a PHP (agnostic).

## Demo

Click [here](https://pragmarx.com/google2fa/middleware) to see the middleware demo:
Click [here](https://pragmarx.com/playground/google2fa/middleware) to see the middleware demo:

![middleware](docs/middleware.jpg)

Expand All @@ -60,7 +60,7 @@ Use Composer to install it:

## Installing on Laravel

### Laravel 5.5
### Laravel 5.5 and above

You don't have to do anything else, this package autoloads the Service Provider and create the Alias, using the new Auto-Discovery feature.

Expand Down Expand Up @@ -123,7 +123,7 @@ Route::get('/admin', function () {

There are three available: **imagemagick** (default), **svg** and **eps**.

You can hange it via config:
You can change it via config:

``` php
/*
Expand Down Expand Up @@ -211,7 +211,7 @@ use PragmaRX\Google2FALaravel\Support\Authenticator;

## Throttling / Lockout after X attempts

Unless you need somethig really fancy, you can probably use Laravel's [route throttle middleware](https://laravel.com/docs/5.8/middleware) for that:
Unless you need something really fancy, you can probably use Laravel's [route throttle middleware](https://laravel.com/docs/6.x/middleware) for that:

```php
Route::get('/admin', function () {
Expand Down

0 comments on commit ed6e0a9

Please sign in to comment.