header(Config::get('cookie.token_name', 'Authori-zation')), 'Bearer')); /** @var OutAccountServices $services */ $services = app()->make(OutAccountServices::class); $outInfo = $services->parseToken($token); $request->outId = (int)$outInfo['out_id']; $request->outInfo = $outInfo; /** @var OutInterfaceServices $outInterfaceServices */ $outInterfaceServices = app()->make(OutInterfaceServices::class); $outInterfaceServices->verifyAuth($request); return $next($request); } }