PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Monday, January 17, 2022

[FIXED] Inertia.JS Render View To String

 January 17, 2022     inertiajs, laravel, php, vue.js     No comments   

Issue

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.



Answered By - Ferry Kranenburg
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing