How To Pass A Value From A Js Function To A Laravel Controller?
I am having trouble with JQ and laravel controller. As this is a JS file which need to call a controller with a value in it. function follow_or_unfollow(id,action) { either rou
Solution 1:
Find a solution that works fine at this moment. Thanks Charletfl !
yes the link can do this job as alternative. like this :
function follow_or_unfollow(id,action)
{
either route callmyUrl="http://foofoo.com/+id" ;
or controller callmyUrl="http://foofoo.com/+id" ;
bla bla bla !
}
in this way the variable value can be passed to the controller but still a researchable question is raised. Like : if we want to implement/print a value inside a php tag what should we do ..
Thanks for helping friends !
Post a Comment for "How To Pass A Value From A Js Function To A Laravel Controller?"