Update user_excluded_categories

This commit is contained in:
DariusIII
2017-10-17 00:03:08 +02:00
parent 1770c8ae04
commit 61bd244e4c
4 changed files with 29 additions and 19 deletions
+6 -14
View File
@@ -22,20 +22,7 @@ class User extends Authenticatable
/**
* @var array
*/
protected $fillable = [
'username',
'password',
'email',
'user_roles_id',
'created_at',
'updated_at',
'host',
'rsstoken',
'invites',
'invitedby',
'userseed',
'notes',
];
protected $guarded = [];
/**
* @var array
@@ -71,4 +58,9 @@ class User extends Authenticatable
{
return $this->hasMany('App\Models\DnzbFailure', 'users_id');
}
public function excludedCategory()
{
return $this->hasMany('App\Models\UserExcludedCategory', 'users_id');
}
}