From a20533c5116b67db0ba489bc70294cc6f857b88b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jergu=C5=A1=20Lejko?= Date: Tue, 14 Jun 2016 20:15:26 +0200 Subject: [PATCH 1/8] List supported drives in cache and broadcasting configs --- config/broadcasting.php | 2 ++ config/cache.php | 2 ++ 2 files changed, 4 insertions(+) diff --git a/config/broadcasting.php b/config/broadcasting.php index abaaac32..bf8b2dfe 100644 --- a/config/broadcasting.php +++ b/config/broadcasting.php @@ -11,6 +11,8 @@ | framework when an event needs to be broadcast. You may set this to | any of the connections defined in the "connections" array below. | + | Supported: "pusher", "redis", "log" + | */ 'default' => env('BROADCAST_DRIVER', 'pusher'), diff --git a/config/cache.php b/config/cache.php index 3ffa840b..6b8ac914 100644 --- a/config/cache.php +++ b/config/cache.php @@ -11,6 +11,8 @@ | using this caching library. This connection is used when another is | not explicitly specified when executing a given caching function. | + | Supported: "apc", "array", "database", "file", "memcached", "redis" + | */ 'default' => env('CACHE_DRIVER', 'file'), From 7e4c6e84dff0f381cf7f7f0cc1e519fab59c4cfd Mon Sep 17 00:00:00 2001 From: Jean Ragouin Date: Wed, 22 Jun 2016 23:10:07 +0800 Subject: [PATCH 2/8] Added session domain env configuration Session domain value available with env configuration https://github.com/laravel/laravel/pull/3806 --- config/session.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/session.php b/config/session.php index b501055b..03731b13 100644 --- a/config/session.php +++ b/config/session.php @@ -135,7 +135,7 @@ | */ - 'domain' => null, + 'domain' => env('SESSION_DOMAIN', null), /* |-------------------------------------------------------------------------- From be7b2627aeede542db30814e511080c98803ec38 Mon Sep 17 00:00:00 2001 From: Sara Bine Date: Thu, 23 Jun 2016 17:14:50 -0600 Subject: [PATCH 3/8] Make password_resets.created_at nullable Prevents MySQL assigning default CURRENT_TIMESTAMP Related issue: laravel/framework#11518 --- .../2014_10_12_100000_create_password_resets_table.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database/migrations/2014_10_12_100000_create_password_resets_table.php b/database/migrations/2014_10_12_100000_create_password_resets_table.php index 00057f9c..294c3ea4 100644 --- a/database/migrations/2014_10_12_100000_create_password_resets_table.php +++ b/database/migrations/2014_10_12_100000_create_password_resets_table.php @@ -15,7 +15,7 @@ public function up() Schema::create('password_resets', function (Blueprint $table) { $table->string('email')->index(); $table->string('token')->index(); - $table->timestamp('created_at'); + $table->timestamp('created_at')->nullable(); }); } From d3aff652bdebe006442a575df647d59baddee903 Mon Sep 17 00:00:00 2001 From: halaei Date: Wed, 29 Jun 2016 12:11:40 +0430 Subject: [PATCH 4/8] expire jobs after 90 seconds --- config/queue.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/queue.php b/config/queue.php index d0f732a6..b4ae7965 100644 --- a/config/queue.php +++ b/config/queue.php @@ -38,14 +38,14 @@ 'driver' => 'database', 'table' => 'jobs', 'queue' => 'default', - 'expire' => 60, + 'expire' => 90, ], 'beanstalkd' => [ 'driver' => 'beanstalkd', 'host' => 'localhost', 'queue' => 'default', - 'ttr' => 60, + 'ttr' => 90, ], 'sqs' => [ @@ -61,7 +61,7 @@ 'driver' => 'redis', 'connection' => 'default', 'queue' => 'default', - 'expire' => 60, + 'expire' => 90, ], ], From cd032040441787c827aa07c428ae753281b685df Mon Sep 17 00:00:00 2001 From: Cedric van Putten Date: Fri, 1 Jul 2016 10:52:07 +0200 Subject: [PATCH 5/8] Add language line for file validation rule. --- resources/lang/en/validation.php | 1 + 1 file changed, 1 insertion(+) diff --git a/resources/lang/en/validation.php b/resources/lang/en/validation.php index b720584b..28c6677f 100644 --- a/resources/lang/en/validation.php +++ b/resources/lang/en/validation.php @@ -38,6 +38,7 @@ 'distinct' => 'The :attribute field has a duplicate value.', 'email' => 'The :attribute must be a valid email address.', 'exists' => 'The selected :attribute is invalid.', + 'file' => 'The :attribute must be a file.', 'filled' => 'The :attribute field is required.', 'image' => 'The :attribute must be an image.', 'in' => 'The selected :attribute is invalid.', From a2c081fd58ec8578e6445584234671a385b575de Mon Sep 17 00:00:00 2001 From: Ng Yik Phang Date: Tue, 5 Jul 2016 19:31:21 +0800 Subject: [PATCH 6/8] Add fallback sans-serif font in case the custom font fails to load --- resources/views/errors/503.blade.php | 2 +- resources/views/welcome.blade.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/views/errors/503.blade.php b/resources/views/errors/503.blade.php index 4a415059..eb76d26b 100644 --- a/resources/views/errors/503.blade.php +++ b/resources/views/errors/503.blade.php @@ -17,7 +17,7 @@ color: #B0BEC5; display: table; font-weight: 100; - font-family: 'Lato'; + font-family: 'Lato', sans-serif; } .container { diff --git a/resources/views/welcome.blade.php b/resources/views/welcome.blade.php index 87710ace..b118d17a 100644 --- a/resources/views/welcome.blade.php +++ b/resources/views/welcome.blade.php @@ -16,7 +16,7 @@ width: 100%; display: table; font-weight: 100; - font-family: 'Lato'; + font-family: 'Lato', sans-serif; } .container { From e3bd984b012fdd05a43d3c9fd5db0f5e986edbb5 Mon Sep 17 00:00:00 2001 From: Kamaro Lambert Date: Sat, 9 Jul 2016 11:44:42 +0200 Subject: [PATCH 7/8] Removed unnecessary else --- app/Http/Middleware/Authenticate.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/Http/Middleware/Authenticate.php b/app/Http/Middleware/Authenticate.php index 67abcaea..ab5ed67c 100644 --- a/app/Http/Middleware/Authenticate.php +++ b/app/Http/Middleware/Authenticate.php @@ -20,9 +20,8 @@ public function handle($request, Closure $next, $guard = null) if (Auth::guard($guard)->guest()) { if ($request->ajax() || $request->wantsJson()) { return response('Unauthorized.', 401); - } else { - return redirect()->guest('login'); - } + } + return redirect()->guest('login'); } return $next($request); From 02274da8fd04f7fe57ff97fe00bd99a7c4cd1d7c Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Sat, 9 Jul 2016 11:27:46 -0500 Subject: [PATCH 8/8] code formatting --- app/Http/Middleware/Authenticate.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Http/Middleware/Authenticate.php b/app/Http/Middleware/Authenticate.php index ab5ed67c..b16a5baf 100644 --- a/app/Http/Middleware/Authenticate.php +++ b/app/Http/Middleware/Authenticate.php @@ -20,7 +20,8 @@ public function handle($request, Closure $next, $guard = null) if (Auth::guard($guard)->guest()) { if ($request->ajax() || $request->wantsJson()) { return response('Unauthorized.', 401); - } + } + return redirect()->guest('login'); }