This commit is contained in:
2018-11-05 19:23:38 -06:00
parent f1738ffc16
commit 16a9964092
4 changed files with 42 additions and 1 deletions
+10
View File
@@ -12,6 +12,16 @@ class UserRole extends Model
// Timestamps
public $timestamps = true;
/**
* The attributes that are mass assignable
*
* @var array
*/
protected $fillable = [
'character_id',
'role',
];
public function user() {
return $this->belongsTo('App\User', 'character_id', 'user_id');
}