Sharing Data
All of Inertia’s server-side adapters provide a method to make shared data available for every request. This is typically done outside of your controllers. Shared data is automatically merged with the page props provided in your controller. In Laravel applications, this is typically handled by theHandleInertiaRequests middleware that is automatically installed when installing the server-side adapter.
Inertia::share method.
Sharing Once Props
You may share data that is resolved only once and remembered by the client across subsequent navigations using once props.shareOnce() method in the middleware. The middleware will evaluate both share() and shareOnce(), merging the results.
Inertia::shareOnce() method.