Pass strings for deletion of user sessions, closes #906
This commit is contained in:
parent
47f1c9c4ec
commit
ffa09d81e2
4 changed files with 13 additions and 9 deletions
|
@ -32,11 +32,11 @@ class SessionRepository extends EloquentRepository implements SessionRepositoryI
|
|||
/**
|
||||
* Delete a session for a given user.
|
||||
*
|
||||
* @param int $user
|
||||
* @param int $session
|
||||
* @param int $user
|
||||
* @param string $session
|
||||
* @return null|int
|
||||
*/
|
||||
public function deleteUserSession(int $user, int $session)
|
||||
public function deleteUserSession(int $user, string $session)
|
||||
{
|
||||
return $this->getBuilder()->where('user_id', $user)->where('id', $session)->delete();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue