Skip to content

Commit a3a1ef9

Browse files
committed
sync with laravel master
1 parent 68fb0b8 commit a3a1ef9

16 files changed

+68
-13
lines changed

.editorconfig

-1
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,4 @@ trim_trailing_whitespace = true
1212
trim_trailing_whitespace = false
1313

1414
[*.yml]
15-
indent_style = space
1615
indent_size = 2

.env.example

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ DB_PASSWORD=secret
1717
CACHE_DRIVER=file
1818
SESSION_DRIVER=file
1919
SESSION_LIFETIME=120
20-
QUEUE_DRIVER=database
2120
FILESYSTEM_DRIVER=local
21+
QUEUE_CONNECTION=sync
2222

2323
REDIS_HOST=127.0.0.1
2424
REDIS_PASSWORD=null

app/Http/Kernel.php

+17-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace App\Http;
44

5+
use App\Http\Middleware\Authenticate;
56
use App\Http\Middleware\EncryptCookies;
67
use App\Http\Middleware\TrimStrings;
78
use App\Http\Middleware\TrustProxies;
@@ -46,11 +47,26 @@ class Kernel extends HttpKernel
4647
* These middleware may be assigned to groups or used individually.
4748
*/
4849
protected $routeMiddleware = [
49-
'auth' => \Illuminate\Auth\Middleware\Authenticate::class,
50+
'auth' => Authenticate::class,
5051
'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class,
5152
'bindings' => \Illuminate\Routing\Middleware\SubstituteBindings::class,
5253
'cache.headers' => \Illuminate\Http\Middleware\SetCacheHeaders::class,
5354
'can' => \Illuminate\Auth\Middleware\Authorize::class,
5455
'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class,
56+
'verified' => \Illuminate\Auth\Middleware\EnsureEmailIsVerified::class,
57+
];
58+
59+
/**
60+
* The priority-sorted list of middleware.
61+
*
62+
* This forces the listed middleware to always be in the given order.
63+
*/
64+
protected $middlewarePriority = [
65+
\Illuminate\Session\Middleware\StartSession::class,
66+
\Illuminate\View\Middleware\ShareErrorsFromSession::class,
67+
Authenticate::class,
68+
\Illuminate\Session\Middleware\AuthenticateSession::class,
69+
\Illuminate\Routing\Middleware\SubstituteBindings::class,
70+
\Illuminate\Auth\Middleware\Authorize::class,
5571
];
5672
}

app/Http/Middleware/Authenticate.php

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?php
2+
3+
namespace App\Http\Middleware;
4+
5+
use Illuminate\Auth\Middleware\Authenticate as Middleware;
6+
7+
class Authenticate extends Middleware
8+
{
9+
/**
10+
* Get the path the user should be redirected to when they are not authenticated.
11+
*/
12+
protected function redirectTo($request)
13+
{
14+
return route('login');
15+
}
16+
}

app/Http/Middleware/VerifyCsrfToken.php

+5
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
66

77
class VerifyCsrfToken extends Middleware
88
{
9+
/**
10+
* Indicates whether the XSRF-TOKEN cookie should be set on the response.
11+
*/
12+
protected $addHttpCookie = true;
13+
914
/**
1015
* The URIs that should be excluded from CSRF verification
1116
*/

config/app.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
|
2323
| This value determines the "environment" your application is currently
2424
| running in. This may determine how you prefer to configure various
25-
| services your application utilizes. Set this in your ".env" file.
25+
| services the application utilizes. Set this in your ".env" file.
2626
|
2727
*/
2828

config/cache.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070

7171
'redis' => [
7272
'driver' => 'redis',
73-
'connection' => 'default',
73+
'connection' => 'cache',
7474
],
7575

7676
],

config/database.php

+8-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,14 @@
6666
'host' => env('REDIS_HOST', '127.0.0.1'),
6767
'password' => env('REDIS_PASSWORD', null),
6868
'port' => env('REDIS_PORT', 6379),
69-
'database' => 0,
69+
'database' => env('REDIS_DB', 0),
70+
],
71+
72+
'cache' => [
73+
'host' => env('REDIS_HOST', '127.0.0.1'),
74+
'password' => env('REDIS_PASSWORD', null),
75+
'port' => env('REDIS_PORT', 6379),
76+
'database' => env('REDIS_CACHE_DB', 1),
7077
],
7178

7279
],

config/hashing.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
| passwords for your application. By default, the bcrypt algorithm is
1212
| used; however, you remain free to modify this option if you wish.
1313
|
14-
| Supported: "bcrypt", "argon"
14+
| Supported: "bcrypt", "argon", "argon2id"
1515
|
1616
*/
1717

config/logging.php

+11
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<?php
22

33
use Monolog\Handler\StreamHandler;
4+
use Monolog\Handler\SyslogUdpHandler;
45

56
return [
67

@@ -59,6 +60,16 @@
5960
'level' => 'critical',
6061
],
6162

63+
// 'papertrail' => [
64+
// 'driver' => 'monolog',
65+
// 'level' => 'debug',
66+
// 'handler' => SyslogUdpHandler::class,
67+
// 'handler_with' => [
68+
// 'host' => env('PAPERTRAIL_URL'),
69+
// 'port' => env('PAPERTRAIL_PORT'),
70+
// ],
71+
// ],
72+
6273
'stderr' => [
6374
'driver' => 'monolog',
6475
'handler' => StreamHandler::class,

config/queue.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
|
1414
*/
1515

16-
'default' => env('QUEUE_DRIVER', 'sync'),
16+
'default' => env('QUEUE_CONNECTION', 'sync'),
1717

1818
/*
1919
|--------------------------------------------------------------------------

config/services.php

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
'mailgun' => [
1818
'domain' => env('MAILGUN_DOMAIN'),
1919
'secret' => env('MAILGUN_SECRET'),
20+
'endpoint' => env('MAILGUN_ENDPOINT', 'api.mailgun.net'),
2021
],
2122

2223
'ses' => [

config/session.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
|
7171
*/
7272

73-
'connection' => null,
73+
'connection' => env('SESSION_CONNECTION', null),
7474

7575
/*
7676
|--------------------------------------------------------------------------
@@ -96,7 +96,7 @@
9696
|
9797
*/
9898

99-
'store' => null,
99+
'store' => env('SESSION_STORE', null),
100100

101101
/*
102102
|--------------------------------------------------------------------------

phpunit.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,11 @@
2020
</filter>
2121
<php>
2222
<env name="APP_ENV" value="testing"/>
23+
<env name="APP_KEY" value="base64:ZJG+W0NsaCq/T27PpstfKXW4cyY6l4IxoqqnsWyqHbo="/>
2324
<env name="BCRYPT_ROUNDS" value="4"/>
2425
<env name="CACHE_DRIVER" value="array"/>
2526
<env name="SESSION_DRIVER" value="array"/>
26-
<env name="QUEUE_DRIVER" value="sync"/>
27+
<env name="QUEUE_CONNECTION" value="sync"/>
2728
<env name="MAIL_DRIVER" value="array"/>
2829
<env name="DB_CONNECTION" value="sqlite"/>
2930
<env name="DB_DATABASE" value=":memory:"/>

readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Cryptocurrency private keys
33

44
## Laravel version
5-
[compare to laravel master](https://github.com/laravel/laravel/compare/289b1457317a08813b8998a9a225535926bd90ee...master)
5+
[compare to laravel master](https://github.com/laravel/laravel/compare/9838f79d2c07c6196afec0363dbabe369e95cc75...master)
66

77
## Installation
88
Make sure the [keys generator executable](https://github.com/SjorsO/keys-generator) is available from $PATH.

resources/views/layout/base-template.blade.php

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
<html lang="en">
33
<head>
44
<meta charset="utf-8">
5-
<meta http-equiv="X-UA-Compatible" content="IE=edge">
65
<meta name="viewport" content="width=device-width, initial-scale=1">
76
<meta name="csrf-token" content="{{ csrf_token() }}">
87
@isset($description)

0 commit comments

Comments
 (0)