Hi Chris,
shouldn't be a problem in principle. Assuming you want the model to be indexed by 2019:2025, and you're using a group="ar1" or similar model, and sf data (only affects the "geometry" input below which is sf specific), with inlabru you can say
+ my_model_component(geometry, model = spatial_model, group = year, group_mapper = bru_mapper(fm_mesh_1d(2019:2025), indexed = TRUE), control.group=list(model="ar1"))
The details will differ a bit depending on precisely what component model you want.
(I strongly recommend using the inlabru interface for this, as doing it in plain inla() is a pain to debug, and most issues are solved by the inlabru interface automatically)
Finn