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 middlewarethe Share function on inertia.Middlewarethe HandleInertiaRequests middleware configured during server-side setup.