class inertia_factory

internal  
 

Factory responsible for creating Inertia responses.

Keeps response construction centralized to allow future decorators.

Methods

render(string $component, array $props = [], Request|null $request = null)

Build an Inertia response wrapper for the given component and props.

Details

at line 32
static inertia_response render(string $component, array $props = [], Request|null $request = null)

Build an Inertia response wrapper for the given component and props.

Parameters

string $component
array $props
Request|null $request

Return Value

inertia_response