You cannot execute a PHP helper function from your Javascript application; you will need to recreate the functionality in JS.
Jan 30, 2024
4
Level 1
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?
Please or to participate in this conversation.