setPage($page)->dispatch(); if ($__inertiaSsrResponse) { echo $__inertiaSsrResponse->body; } else { ?>
'; return implode(' ', array_map('trim', explode("\n", $template))); } /** * 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. * * @param string $expression */ public static function compileHead($expression = ''): string { $template = 'setPage($page)->dispatch(); if ($__inertiaSsrResponse) { echo $__inertiaSsrResponse->head; } ?>'; return implode(' ', array_map('trim', explode("\n", $template))); } }