Skip to content

Commit

Permalink
RefreshToken fix
Browse files Browse the repository at this point in the history
  • Loading branch information
CupOfTea696 committed Jun 10, 2015
1 parent 03b9b7d commit 4736541
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Models/RefreshToken.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ public function __construct(array $attributes = []){

$this->userKey = (new $model)->getKeyName();
$this->table = Config::get('youtube.table');
$this->fillable = ['token', $this->userKey];
$this->fillable = ['token', 'user_id'];

parent::__construct($attributes);
}

public function user(){
return $this->hasOne(('\\' . Config::get('auth.model')), $this->userKey, 'user_id');
return $this->belongsTo(('\\' . Config::get('auth.model')), $this->userKey, 'user_id');
}
}

0 comments on commit 4736541

Please sign in to comment.