Inertia
in package
Inertia Adapter for Leaf ---- This adapter allows you to use InertiaJS with Leaf.
Table of Contents
Properties
- $rootView : mixed
- Root view
Methods
- getSharedPageInfo() : mixed
- Get shared page info
- getSharedProps() : mixed
- Get shared props
- getVersion() : mixed
- Get version
- isBladeProject() : mixed
- render() : mixed
- Render InertiaJS view
- resolvePropertyInstances() : array<string|int, mixed>
- Resolve all necessary class instances in the given props.
- setRootView() : mixed
- Set root view
Properties
$rootView
Root view
protected
static mixed
$rootView
= '_inertia'
Methods
getSharedPageInfo()
Get shared page info
public
static getSharedPageInfo() : mixed
getSharedProps()
Get shared props
public
static getSharedProps() : mixed
getVersion()
Get version
public
static getVersion() : mixed
isBladeProject()
public
static isBladeProject() : mixed
render()
Render InertiaJS view
public
static render(string $component[, array<string|int, mixed> $props = [] ]) : mixed
Parameters
- $component : string
-
The component to render.
- $props : array<string|int, mixed> = []
-
The props to pass to the component.
resolvePropertyInstances()
Resolve all necessary class instances in the given props.
public
static resolvePropertyInstances(array<string|int, mixed> $props[, bool $unpackDotProps = true ]) : array<string|int, mixed>
Parameters
- $props : array<string|int, mixed>
-
The props to resolve.
- $unpackDotProps : bool = true
-
Whether to unpack dot props.
Return values
array<string|int, mixed>setRootView()
Set root view
public
static setRootView(string $rootView) : mixed
Parameters
- $rootView : string