File tree Expand file tree Collapse file tree 2 files changed +21
-9
lines changed Expand file tree Collapse file tree 2 files changed +21
-9
lines changed Original file line number Diff line number Diff line change @@ -24,27 +24,32 @@ This package adds the routes under `genealabs/laravel-caffeine`. Please verify
24
24
that these don't collide with your existing routes.
25
25
26
26
### Dependencies
27
- - Your project must be running Laravel 5.1 (LTS) or 5.3 (CURRENT).
27
+ - Your project must be running one of the following Laravel versions:
28
+ - 5.1 (LTS)
29
+ - 5.3
30
+ - 5.4
31
+ - 5.5 (LTS)
28
32
- PHP 7.0.0 or higher.
29
33
30
34
## Installation
31
- 1 . Installation for Laravel LTS (5.1) or CURRENT (5.3):
32
-
35
+ For Laravel 5.2, follow the directions here: https://github.com/GeneaLabs/laravel-caffeine/tree/166e2ca08af7cc62a59360f33e03d1cb8478df6a
36
+
37
+ 1 . Install the package:
33
38
``` sh
34
39
composer require genealabs/laravel-caffeine
35
40
```
36
41
37
- For Laravel 5.2, follow the directions here: https://github.com/GeneaLabs/laravel-caffeine/tree/166e2ca08af7cc62a59360f33e03d1cb8478df6a
38
42
39
- 2 . Add the service provider entry in ` config/app.php ` :
43
+ 2 . ** This is only required for Laravel 5.4 or below:**
44
+ Add the service provider entry in ` config/app.php ` :
40
45
``` php
41
46
// 'providers' => [
42
47
GeneaLabs\LaravelCaffeine\Providers\LaravelCaffeineService::class,
43
48
// ],
44
49
```
45
50
46
- 3 . You no longer have to register the middleware manually. If you have done so
47
- previously, please remove the following middleware from ` app/Http/Kernel.php ` :
51
+ 3 . If you have previously registered the middleware, please remove the following
52
+ middleware from ` app/Http/Kernel.php ` :
48
53
``` php
49
54
// protected $middleware = [
50
55
GeneaLabs\LaravelCaffeine\Http\Middleware\LaravelCaffeineDripMiddleware::class,
Original file line number Diff line number Diff line change 15
15
},
16
16
"require" : {
17
17
"php" : " >=7.0.0" ,
18
- "illuminate/support" : " 5.1.* || 5.3.* || 5.4.*" ,
19
- "illuminate/routing" : " 5.1.* || 5.3.* || 5.4.*"
18
+ "illuminate/support" : " 5.1.* || 5.3.* || 5.4.* || 5.5.*" ,
19
+ "illuminate/routing" : " 5.1.* || 5.3.* || 5.4.* || 5.5.*"
20
+ },
21
+ "extra" : {
22
+ "laravel" : {
23
+ "providers" : [
24
+ " GeneaLabs\\ LaravelCaffeine\\ Providers\\ LaravelCaffeineService"
25
+ ]
26
+ }
20
27
}
21
28
}
You can’t perform that action at this time.
0 commit comments