tokens = $token; Request::instance()->user_id = $user_id; Request::instance()->user = $user; } return $next($request); } }