Creating Pages
Inertia pages are simply JavaScript components. If you have ever written a Vue, React, or Svelte component, you will feel right at home. As you can see in the example below, pages receive data from your application’s controllers as props.inertia.ensure_pages_exist configuration option to true. The Laravel adapter will then throw an Inertia\ComponentNotFoundException when a page cannot be found.
Transforming Component Names
Sometimes you may wish to transform component names. This may be done on the client side using thepages.transform option, or on the server using the Inertia::transformComponentUsing() method. The transformed name is sent to the browser and used for ensure_pages_exist checks.