Update RoleExcludedCategories and related models

This commit is contained in:
DariusIII
2017-10-17 12:32:53 +02:00
parent a2b2de4e2b
commit 345b2018b9
8 changed files with 29 additions and 5 deletions
+5
View File
@@ -28,4 +28,9 @@ class UserRole extends Model
{
return $this->hasMany('App\Models\User', 'user_roles_id');
}
public function roleExcludedCategory()
{
return $this->hasMany('App\Models\RoleExcludedCategory', 'user_roles_id');
}
}