Support for View Models #611
Closed
vJoeyz
started this conversation in
Feature Requests
Replies: 2 comments 2 replies
-
If it works, feel free to submit a pull request and I can build on top of it when I get a chance. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Came here since I need support for View Models and thus had the same question. Any updates in case of View Models or should I try to get the POC of vJoeyz working in my project? Or are there any other (good) methods to get some database data (aggregate data of a Runway resource) in the view layer? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Support for something like view models, perhaps in the same way statamic does it.
I've made a very very very rough poc here. I wasn't really sure where to put all that stuff. However, it does seem to work and hydrates the cascade given the view model defined in runway.php. I'm even less sure of how it can work with relations and caching.
Beta Was this translation helpful? Give feedback.
All reactions