Creating Responses
Creating an Inertia response is simple. To get started, invoke theInertia::render() method within your controller or route, providing both the name of the JavaScript page component that you wish to render, as well as any props (data) for the page.
In the example below, we will pass a single prop (event) which contains four attributes (id, title, start_date and description) to the Event/Show page component.