Sharing Data
Inertia’s server-side adapters all provide a method of making shared data available for every request. This is typically done outside of your controllers. Shared data will be 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().