Skip to content

Commit

Permalink
Update for Laravel 5.5
Browse files Browse the repository at this point in the history
  • Loading branch information
mikebronner committed Sep 1, 2017
1 parent 71fdfd3 commit b1ab964
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 9 deletions.
19 changes: 12 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,27 +24,32 @@ This package adds the routes under `genealabs/laravel-caffeine`. Please verify
that these don't collide with your existing routes.

### Dependencies
- Your project must be running Laravel 5.1 (LTS) or 5.3 (CURRENT).
- Your project must be running one of the following Laravel versions:
- 5.1 (LTS)
- 5.3
- 5.4
- 5.5 (LTS)
- PHP 7.0.0 or higher.

## Installation
1. Installation for Laravel LTS (5.1) or CURRENT (5.3):

For Laravel 5.2, follow the directions here: https://github.com/GeneaLabs/laravel-caffeine/tree/166e2ca08af7cc62a59360f33e03d1cb8478df6a

1. Install the package:
```sh
composer require genealabs/laravel-caffeine
```

For Laravel 5.2, follow the directions here: https://github.com/GeneaLabs/laravel-caffeine/tree/166e2ca08af7cc62a59360f33e03d1cb8478df6a

2. Add the service provider entry in `config/app.php`:
2. **This is only required for Laravel 5.4 or below:**
Add the service provider entry in `config/app.php`:
```php
// 'providers' => [
GeneaLabs\LaravelCaffeine\Providers\LaravelCaffeineService::class,
// ],
```

3. You no longer have to register the middleware manually. If you have done so
previously, please remove the following middleware from `app/Http/Kernel.php`:
3. If you have previously registered the middleware, please remove the following
middleware from `app/Http/Kernel.php`:
```php
// protected $middleware = [
GeneaLabs\LaravelCaffeine\Http\Middleware\LaravelCaffeineDripMiddleware::class,
Expand Down
11 changes: 9 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,14 @@
},
"require": {
"php": ">=7.0.0",
"illuminate/support": "5.1.* || 5.3.* || 5.4.*",
"illuminate/routing": "5.1.* || 5.3.* || 5.4.*"
"illuminate/support": "5.1.* || 5.3.* || 5.4.* || 5.5.*",
"illuminate/routing": "5.1.* || 5.3.* || 5.4.* || 5.5.*"
},
"extra": {
"laravel": {
"providers": [
"GeneaLabs\\LaravelCaffeine\\Providers\\LaravelCaffeineService"
]
}
}
}

0 comments on commit b1ab964

Please sign in to comment.