statamic-rad-pack / runway

Eloquently manage your database models in Statamic.
https://statamic.com/addons/rad-pack/runway
MIT License
112 stars 47 forks source link

[7.x] Refactor model URLs #511

Closed duncanmcclean closed 4 months ago

duncanmcclean commented 4 months ago

This pull request adds new runwayEditUrl and runwayUpdateUrl methods to the HasRunwayResource trait, and replaces calls to the edit/update routes in the code.

This pattern will become useful in https://github.com/statamic-rad-pack/runway/pull/492, which will need to pass down URLs in a bunch more places.