From 14125fb5c68b3e8682d2048039a4965ca031e995 Mon Sep 17 00:00:00 2001 From: Kelvin Zhang Date: Mon, 31 Aug 2015 12:19:29 +0100 Subject: [PATCH] Upgrade User.php to 5.1 --- app/User.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/User.php b/app/User.php index 173768d0..ce0185fc 100644 --- a/app/User.php +++ b/app/User.php @@ -2,17 +2,19 @@ use Illuminate\Auth\Authenticatable; use Illuminate\Auth\Passwords\CanResetPassword; +use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract; +use Illuminate\Contracts\Auth\CanResetPassword as CanResetPasswordContract; use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\URL; use Illuminate\Support\Str; -class User extends Model +class User extends Model implements AuthenticatableContract, CanResetPasswordContract { use Authenticatable, CanResetPassword; protected $table = 'users'; - protected $hidden = ['password_hash', 'password_salt', 'bio']; + protected $hidden1 = ['password_hash', 'password_salt', 'bio']; public function scopeUserDetails($query) {