Skip to content

Commit bc5d88a

Browse files
authored
Sync with laravel/laravel (#22)
1 parent fe8ce79 commit bc5d88a

File tree

10 files changed

+24
-14
lines changed

10 files changed

+24
-14
lines changed

.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

.gitignore

+1-3
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,16 @@
66
/storage/*.key
77
/storage/pail
88
/vendor
9-
.DS_Store
109
.env
1110
.env.backup
1211
.env.production
1312
.phpactor.json
1413
.phpunit.result.cache
15-
.windsurfrules
1614
Homestead.json
1715
Homestead.yaml
18-
auth.json
1916
npm-debug.log
2017
yarn-error.log
18+
/auth.json
2119
/.fleet
2220
/.idea
2321
/.nova

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);

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
|--------------------------------------------------------------------------

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
],

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,

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

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} (.+)/$

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());

routes/console.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55

66
Artisan::command('inspire', function () {
77
$this->comment(Inspiring::quote());
8-
})->purpose('Display an inspiring quote')->hourly();
8+
})->purpose('Display an inspiring quote');

0 commit comments

Comments
 (0)