This commit is contained in:
2018-11-05 19:28:53 -06:00
parent a1997b3727
commit 0401cb3f8f
2 changed files with 10 additions and 10 deletions
@@ -4,7 +4,7 @@ namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class EsiScope extends Model
class UserEsiScope extends Model
{
// Table Name
protected $table = 'UserEsiScopes';
@@ -12,10 +12,6 @@ class EsiScope extends Model
// Timestamps
public $timestamps = true;
public function user() {
return $this->belongsTo('App\User', 'character_id', 'character_id');
}
/**
* The attributes that are mass assignable
*
@@ -25,4 +21,8 @@ class EsiScope extends Model
'character_id',
'scope',
];
public function user() {
return $this->belongsTo('App\User', 'character_id', 'character_id');
}
}