Skip to content

Commit 00f07ff

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents 8e137b5 + 7aa988d commit 00f07ff

File tree

6 files changed

+13
-6
lines changed

6 files changed

+13
-6
lines changed

.env.example

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ APP_ENV=local
22
APP_DEBUG=true
33
APP_KEY=SomeRandomString
44

5-
DB_HOST=localhost
5+
DB_HOST=127.0.0.1
66
DB_DATABASE=homestead
77
DB_USERNAME=homestead
88
DB_PASSWORD=secret
@@ -11,7 +11,7 @@ CACHE_DRIVER=file
1111
SESSION_DRIVER=file
1212
QUEUE_DRIVER=sync
1313

14-
REDIS_HOST=localhost
14+
REDIS_HOST=127.0.0.1
1515
REDIS_PASSWORD=null
1616
REDIS_PORT=6379
1717

app/Http/Middleware/Authenticate.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class Authenticate
1818
public function handle($request, Closure $next, $guard = null)
1919
{
2020
if (Auth::guard($guard)->guest()) {
21-
if ($request->ajax()) {
21+
if ($request->ajax() || $request->wantsJson()) {
2222
return response('Unauthorized.', 401);
2323
} else {
2424
return redirect()->guest('login');

config/cache.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@
5151
'driver' => 'memcached',
5252
'servers' => [
5353
[
54-
'host' => '127.0.0.1', 'port' => 11211, 'weight' => 100,
54+
'host' => env('MEMCACHED_HOST', '127.0.0.1'),
55+
'port' => env('MEMCACHED_PORT', 11211),
56+
'weight' => 100,
5557
],
5658
],
5759
],

config/database.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
'collation' => 'utf8_unicode_ci',
6363
'prefix' => '',
6464
'strict' => false,
65+
'engine' => null,
6566
],
6667

6768
'pgsql' => [

public/.htaccess

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,8 @@
1313
RewriteCond %{REQUEST_FILENAME} !-d
1414
RewriteCond %{REQUEST_FILENAME} !-f
1515
RewriteRule ^ index.php [L]
16+
17+
# Handle Authorization Header
18+
RewriteCond %{HTTP:Authorization} .
19+
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
1620
</IfModule>

readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Laravel PHP Framework
1+
# Laravel PHP Framework
22

33
[![Build Status](https://travis-ci.org/laravel/framework.svg)](https://travis-ci.org/laravel/framework)
44
[![Total Downloads](https://poser.pugx.org/laravel/framework/d/total.svg)](https://packagist.org/packages/laravel/framework)
@@ -22,6 +22,6 @@ Thank you for considering contributing to the Laravel framework! The contributio
2222

2323
If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell at taylor@laravel.com. All security vulnerabilities will be promptly addressed.
2424

25-
### License
25+
## License
2626

2727
The Laravel framework is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)

0 commit comments

Comments
 (0)