Directive
class Directive
Methods
static string
compile(string $expression = '')
Compile the "@inertia" Blade directive. This directive renders the Inertia root element with the page data, handling both client-side rendering and SSR fallback scenarios.
static string
compileHead(string $expression = '')
Compile the "@inertiaHead" Blade directive. This directive renders the head content for SSR responses, including meta tags, title, and other head elements from the server-side render.
Details
at line 14
static string
compile(string $expression = '')
Compile the "@inertia" Blade directive. This directive renders the Inertia root element with the page data, handling both client-side rendering and SSR fallback scenarios.
at line 36
static string
compileHead(string $expression = '')
Compile the "@inertiaHead" Blade directive. This directive renders the head content for SSR responses, including meta tags, title, and other head elements from the server-side render.