diff --git a/app/Http/Controllers/LogoutController.php b/app/Http/Controllers/LogoutController.php index 2d0c0f4e4e..5a5a301505 100644 --- a/app/Http/Controllers/LogoutController.php +++ b/app/Http/Controllers/LogoutController.php @@ -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