Skip to content

Commit 0519582

Browse files
authored
Sync with laravel/laravel (#34)
1 parent 4e6b0ed commit 0519582

File tree

10 files changed

+34
-24
lines changed

10 files changed

+34
-24
lines changed

Diff for: .env.example

+2-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ APP_NAME=Laravel
22
APP_ENV=local
33
APP_KEY=
44
APP_DEBUG=true
5-
APP_TIMEZONE=UTC
65
APP_URL=http://localhost
76

87
APP_LOCALE=en
@@ -39,7 +38,7 @@ FILESYSTEM_DISK=local
3938
QUEUE_CONNECTION=database
4039

4140
CACHE_STORE=database
42-
CACHE_PREFIX=
41+
# CACHE_PREFIX=
4342

4443
MEMCACHED_HOST=127.0.0.1
4544

@@ -49,11 +48,11 @@ REDIS_PASSWORD=null
4948
REDIS_PORT=6379
5049

5150
MAIL_MAILER=log
51+
MAIL_SCHEME=null
5252
MAIL_HOST=127.0.0.1
5353
MAIL_PORT=2525
5454
MAIL_USERNAME=null
5555
MAIL_PASSWORD=null
56-
MAIL_ENCRYPTION=null
5756
MAIL_FROM_ADDRESS="[email protected]"
5857
MAIL_FROM_NAME="${APP_NAME}"
5958

Diff for: .gitignore

+11-13
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,23 @@
1-
.DS_Store
2-
.env
3-
.env.backup
4-
.env.production
5-
.phpactor.json
6-
.phpunit.result.cache
7-
/.fleet
8-
/.idea
9-
/.nova
101
/.phpunit.cache
11-
/.vscode
12-
/.zed
13-
/bootstrap/ssr
142
/node_modules
153
/public/build
164
/public/hot
175
/public/storage
186
/storage/*.key
197
/storage/pail
208
/vendor
21-
auth.json
9+
.env
10+
.env.backup
11+
.env.production
12+
.phpactor.json
13+
.phpunit.result.cache
2214
Homestead.json
2315
Homestead.yaml
2416
npm-debug.log
2517
yarn-error.log
18+
/auth.json
19+
/.fleet
20+
/.idea
21+
/.nova
22+
/.vscode
23+
/.zed

Diff for: artisan

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/usr/bin/env php
22
<?php
33

4+
use Illuminate\Foundation\Application;
45
use Symfony\Component\Console\Input\ArgvInput;
56

67
define('LARAVEL_START', microtime(true));
@@ -9,7 +10,9 @@ define('LARAVEL_START', microtime(true));
910
require __DIR__.'/vendor/autoload.php';
1011

1112
// Bootstrap Laravel and handle the command...
12-
$status = (require_once __DIR__.'/bootstrap/app.php')
13-
->handleCommand(new ArgvInput);
13+
/** @var Application $app */
14+
$app = require_once __DIR__.'/bootstrap/app.php';
15+
16+
$status = $app->handleCommand(new ArgvInput);
1417

1518
exit($status);

Diff for: composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,6 @@
7171
"php-http/discovery": true
7272
}
7373
},
74-
"minimum-stability": "dev",
74+
"minimum-stability": "stable",
7575
"prefer-stable": true
7676
}

Diff for: config/app.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
|
6666
*/
6767

68-
'timezone' => env('APP_TIMEZONE', 'UTC'),
68+
'timezone' => 'UTC',
6969

7070
/*
7171
|--------------------------------------------------------------------------

Diff for: config/filesystems.php

+3
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
'root' => storage_path('app/private'),
3636
'serve' => true,
3737
'throw' => false,
38+
'report' => false,
3839
],
3940

4041
'public' => [
@@ -43,6 +44,7 @@
4344
'url' => env('APP_URL').'/storage',
4445
'visibility' => 'public',
4546
'throw' => false,
47+
'report' => false,
4648
],
4749

4850
's3' => [
@@ -55,6 +57,7 @@
5557
'endpoint' => env('AWS_ENDPOINT'),
5658
'use_path_style_endpoint' => env('AWS_USE_PATH_STYLE_ENDPOINT', false),
5759
'throw' => false,
60+
'report' => false,
5861
],
5962

6063
],

Diff for: config/mail.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@
3939

4040
'smtp' => [
4141
'transport' => 'smtp',
42+
'scheme' => env('MAIL_SCHEME'),
4243
'url' => env('MAIL_URL'),
4344
'host' => env('MAIL_HOST', '127.0.0.1'),
4445
'port' => env('MAIL_PORT', 2525),
45-
'encryption' => env('MAIL_ENCRYPTION', 'tls'),
4646
'username' => env('MAIL_USERNAME'),
4747
'password' => env('MAIL_PASSWORD'),
4848
'timeout' => null,

Diff for: config/session.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
|
3333
*/
3434

35-
'lifetime' => env('SESSION_LIFETIME', 120),
35+
'lifetime' => (int) env('SESSION_LIFETIME', 120),
3636

3737
'expire_on_close' => env('SESSION_EXPIRE_ON_CLOSE', false),
3838

Diff for: public/.htaccess

+4
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
RewriteCond %{HTTP:Authorization} .
1010
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
1111

12+
# Handle X-XSRF-Token Header
13+
RewriteCond %{HTTP:x-xsrf-token} .
14+
RewriteRule .* - [E=HTTP_X_XSRF_TOKEN:%{HTTP:X-XSRF-Token}]
15+
1216
# Redirect Trailing Slashes If Not A Folder...
1317
RewriteCond %{REQUEST_FILENAME} !-d
1418
RewriteCond %{REQUEST_URI} (.+)/$

Diff for: public/index.php

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

3+
use Illuminate\Foundation\Application;
34
use Illuminate\Http\Request;
45

56
define('LARAVEL_START', microtime(true));
@@ -13,5 +14,7 @@
1314
require __DIR__.'/../vendor/autoload.php';
1415

1516
// Bootstrap Laravel and handle the request...
16-
(require_once __DIR__.'/../bootstrap/app.php')
17-
->handleRequest(Request::capture());
17+
/** @var Application $app */
18+
$app = require_once __DIR__.'/../bootstrap/app.php';
19+
20+
$app->handleRequest(Request::capture());

0 commit comments

Comments
 (0)