feat : site
This commit is contained in:
@@ -48,6 +48,16 @@ class UserSite extends Model
|
||||
return $this->find($id);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int $userId
|
||||
* @param int $siteId
|
||||
* @return Collection
|
||||
*/
|
||||
public function getInfoByUserIdAndSiteId(int $userId, int $siteId): Collection
|
||||
{
|
||||
return $this->where('user_id', $userId)->where('site_id', $siteId)->first();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int $userId
|
||||
* @return array
|
||||
|
||||
Reference in New Issue
Block a user