Passing exogeneous variable to ARIMAX

Exogenous values are supplied either through data or transformed data blocks.
@asael_am’s GitHub - asael697/bayesforecast: Automatic forecasting and Bayesian modeling for time series with Stan seems to have arimax feature, and tracing its implementation might be helpful e.g. this line receives xreg. Another resource is Prophet library, this code or this issue on regressors.