Clean up logout requests
This commit is contained in:
parent
c5f4b31023
commit
250f0bf2e8
1 changed files with 1 additions and 1 deletions
|
|
@ -60,7 +60,7 @@ class LogoutController extends BaseController
|
|||
public function index(Request $request)
|
||||
{
|
||||
$ct = CompanyToken::with('company.tokens')
|
||||
->whereRaw('BINARY `token`= ?', [$request->header('X-API-TOKEN')])
|
||||
->where('token', $request->header('X-API-TOKEN'))
|
||||
->first();
|
||||
|
||||
$ct->company
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue