class inertia_manager

internal  
 

Manages globally shared Inertia props.

Allows registering static or lazy (Closure) props that are merged into every response.

Properties

static protected array<string,mixed> $shared

Methods

static void
share(string $key, mixed $value)

Share data globally across all Inertia responses.

static array
get_shared()

Returns resolved shared props (executing closures when present).

Details

at line 35
static void share(string $key, mixed $value)

Share data globally across all Inertia responses.

Parameters

string $key
mixed $value

Return Value

void

at line 45
static array get_shared()

Returns resolved shared props (executing closures when present).

Return Value

array