callApiService = $callApiService; } /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @return mixed */ public function handle(Request $request, Closure $next) { // session()->put('GateToken.erp', 'duoICbFSNRRoxXoIaC0G'); if (empty(session('GateToken'))) { $this->callApiService->setGateToken(); } // dump(session('GateToken')); return $next($request); } }