From 2a3743b0fad84dbe78f8918420ff48545e04ab92 Mon Sep 17 00:00:00 2001 From: Ben Sampson Date: Mon, 26 Oct 2015 13:21:38 +0000 Subject: [PATCH 1/2] PSR-2 formatting of User model? > Lists of implements MAY be split across multiple lines, where each subsequent line is indented once. When doing so, the first item in the list MUST be on the next line, and there MUST be only one interface per line. https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md#41-extends-and-implements --- app/User.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/User.php b/app/User.php index 9f1e7481..304d5acc 100644 --- a/app/User.php +++ b/app/User.php @@ -10,9 +10,10 @@ use Illuminate\Contracts\Auth\Access\Authorizable as AuthorizableContract; use Illuminate\Contracts\Auth\CanResetPassword as CanResetPasswordContract; -class User extends Model implements AuthenticatableContract, - AuthorizableContract, - CanResetPasswordContract +class User extends Model implements + AuthenticatableContract, + AuthorizableContract, + CanResetPasswordContract { use Authenticatable, Authorizable, CanResetPassword; From 86d1dfcf51cc7a3fca1a513571b9633e4629fbce Mon Sep 17 00:00:00 2001 From: Roman Kinyakin <1@grep.su> Date: Mon, 26 Oct 2015 22:13:51 +0600 Subject: [PATCH 2/2] Redis connection setup in .env --- config/database.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/database.php b/config/database.php index 5987be69..ab8fed33 100644 --- a/config/database.php +++ b/config/database.php @@ -116,9 +116,9 @@ 'cluster' => false, 'default' => [ - 'host' => '127.0.0.1', - 'port' => 6379, - 'database' => 0, + 'host' => env('REDIS_HOST', '127.0.0.1'), + 'port' => env('REDIS_PORT', 6379), + 'database' => env('REDIS_DB', 0), ], ],