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.