Skip to content

Commit 3c6ee8d

Browse files
committed
Update README
1 parent f51138f commit 3c6ee8d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Install by running `composer require "styde/html=~1.1"` or adding `"styde/html":
3838

3939
Install by running `composer require "styde/html=~1.0"` or adding `"styde/html": "~1.0"` to your `composer.json` file and then running `composer update`.
4040

41-
2. Next, add the new provider to the `providers` array in `config/app.php`
41+
2. Next, add the new provider to the `providers` array in `config/app.php` (this step is not necessary if you are using Laravel 5.5 with package auto-discovery)
4242

4343
```php
4444
'providers' => [
@@ -51,7 +51,7 @@ Install by running `composer require "styde/html=~1.0"` or adding `"styde/html":
5151
3. Also, you need to register in the `app/Http/Kernel.php` file the `\Styde\Html\Alert\Middleware::class` middleware **BEFORE** the `EncryptCookies` middleware. For Laravel 5.4, it's in the `$middlewareGroups` array and for previous versions (Laravel 5.3, 5.2, 5.1) it's in the `$middleware` array:
5252

5353
```php
54-
// For Laravel 5.4
54+
// For Laravel 5.4 and 5.5
5555
protected $middlewareGroups = [
5656
\Styde\Html\Alert\Middleware::class,
5757
//...

0 commit comments

Comments
 (0)