1 month ago

Control javascript values/functions from Laravel admin panel

Posted 1 month ago by irfanrufi

This seem like a weird question, most likely because I don't know how to put it.

Say like I have a js function that loads on click and simply gives an alert box

alert("Hello! I am an alert box!!");

Now, how can I have a form in my Laravel panel, like "Text" and what text I put there is what shows in the Alert box? How do I parse PHP's value into JS?

It's a newbie question, I know and very grateful for any assistance. Can't seem to find anything as I don't exactly know what to type.


Please sign in or create an account to participate in this conversation.