Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

mifta13's avatar

Call function in Helper to reactjs with inertia

Hi, previously I have an application built in laravel with blade templating and bootstrap. Then I want recreate it with laravel and reactjs with inertia. In previous app, I've create a function in Helper.php then I push it into HelperProvider. With blade templating I can call the function in Helper.php in view directly. How can I reach it with reactjs and inertia?

0 likes
4 replies
tykus's avatar

You cannot execute a PHP helper function from your Javascript application; you will need to recreate the functionality in JS.

gych's avatar

Which functionality does your helper function has?

Please or to participate in this conversation.