database update

This commit is contained in:
Malibu
2015-02-18 23:15:18 +01:00
parent 2addf1a30b
commit 51fd0b06b9
10 changed files with 143 additions and 45 deletions

View File

@ -31,8 +31,8 @@ class User extends Model implements AuthenticatableContract, CanResetPasswordCon
public function scopeCurrent($query)
{
$email = Auth::user()->email;
return $query->where('email', $email)->first();
$idUser = Auth::user()->id;
return $query->where('id', $idUser)->first();
}
public function scopeReferents($query)