inertia_response
class inertia_response
| internal |
Value object representing an Inertia response payload.
Determines whether to return JSON (Inertia) or HTML bootstrap and resolves shared props.
Methods
__construct(string $component, array $props = [], Request|null $request = null)
No description
Response
to_response()
Build the Inertia response (JSON for SPA, HTML bootstrap otherwise).
array
resolve_props()
Merge local props with shared props, resolving closures.
Details
at line 32
__construct(string $component, array $props = [], Request|null $request = null)
No description
at line 43
Response
to_response()
Build the Inertia response (JSON for SPA, HTML bootstrap otherwise).
at line 83
protected array
resolve_props()
Merge local props with shared props, resolving closures.