phplaravelvue.jsinertiajs

Inertia.JS Render View To String


I have a laravel jetstream application where I would like to render a vue view into a html string which i will then process elsewhere.

I would like to have

$htmlStr = Inertia::render('Claims/Show', ['claim' => $claim,  'permissions' => $permissions]);

Is there a way to render inertia templates as a string?


Solution

  • No, not possible. It renderes a view response that cannot be converted to a html string.