hasMany(User::class, 'user_roles_id'); } public function roleExcludedCategory() { return $this->hasMany(RoleExcludedCategory::class, 'user_roles_id'); } }