Closed duncanmcclean closed 5 days ago
This looks good but will only work if you have both collection and entries eloquent driven.
If you have collections file driven, then this wouldn't update the eloquent entries with the new route (which I'd guess is the more common config).
Maybe we are ok with that, but thought I'd mention it for discussion.
Oh, good point!
Ideally, it'd work if your collections were stored as flat files too. I'll have a think about the best way to approach it 🤔
Closing in favour of statamic/cms#11150.
This pull request fixes an issue when changing a collection's route, where it wouldn't trigger the
uri
column on theentries
table to be updated.Closes #378.