flexible-presenter
Easily define just the right data for your InertiaJS views (or anywhere else you want to, uh, flexibly present). (by fourstacks)
laravel-inertia-vue3-preset
By teena-dot-dev
flexible-presenter | laravel-inertia-vue3-preset | |
---|---|---|
3 | 1 | |
120 | 0 | |
0.0% | - | |
1.8 | 0.0 | |
about 1 year ago | about 3 years ago | |
PHP | PHP | |
MIT License | - |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
flexible-presenter
Posts with mentions or reviews of flexible-presenter.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-09-12.
-
With Laravel Intertia, is it possible to ensure certain key/value pairs are always returned in props?
We use “presenters” as a final step to clean up data formats and get things ready for Vue. https://github.com/fourstacks/flexible-presenter
-
Defining many controllers for a model for different API endpoints each requiring its own subset of fields of the model thus ensuring that DB querying is optimized and that no bandwidth is wasted serving up unnecessary data that is not to be rendered
I don’t know enough about writing APIs to tell you if this would work, but we use https://github.com/AdditionApps/flexible-presenter very successfully. It has ‘preset’s which are subsets of the available fields - so where I’m displaying just user name and need their id for routing i can call the presenter with ->preset(‘listing’) to only get those fields.
-
Ideal Laravel, Inertia.js and Vue setup?
There is a "Presenter" pattern for Inertia that can flatten, format or cast to arrays as part of sending your data from the back-end Controllers to the front-end Vue pages: https://github.com/AdditionApps/flexible-presenter But don't over think it. Vue can handle most of your objects, arrays and variables straight out of the controller as props. We've found that when using Inertia it's best to think of Vue as a modern form of Blade so just send the simplest props you can and do the work in the controller.
laravel-inertia-vue3-preset
Posts with mentions or reviews of laravel-inertia-vue3-preset.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-02-15.
What are some alternatives?
When comparing flexible-presenter and laravel-inertia-vue3-preset you can also consider the following projects:
json-api - A specification for building JSON APIs
apollo - 🚀 Apollo/GraphQL integration for VueJS