I have build a site with Larevel Breeze, Inertial and Vue.
There are some components that is very deep in the tree, Instead of pass props on and on, I'm thinking about getting the info the components need from XHR call on json end points.
How best to go about doing that with the stack I have got? I look at Breeze authentication for api. Soem source suggested using php artisan breeze:install api but that would remove everything from resource directory which is not what I want. Is it posible to use Breeze for both web and api routes?
The things I build is solely for internal use so Breeze + LDAP is more then enough.
You don't need breeze:api you can just use axios and add a route to your routes that returns the needed data.
But there are also other solutions to avoid having to pass props between your components.
For example if the parent has the prop you can use usePage from Inertia and use the prop in all the components under that parent.