relationships again

This commit is contained in:
2018-11-05 10:39:01 -06:00
parent 01a0471114
commit c91c9cd378
11 changed files with 63 additions and 7 deletions
+18
View File
@@ -0,0 +1,18 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class EsiScope extends Model
{
// Table Name
protected $table = 'UserEsiScopes';
// Timestamps
public $timestamps = true;
public function user() {
return $this->belongsTo('App\User', 'character_id', 'character_id');
}
}