title: Calling Javascript function from Laravel controller and return data
body: <p>I want to call a <em>firebase</em> auth function (which is in Javascript) from my controller and I want the returned <code>token</code> back in my controller, but I do not know how to proceed. </p>
  
  <p>I know how to post <code>ajax</code> request to controller and get data back, however I don't know how to make a request the other way around. </p>
  
  <p>I would be thankful if you can put me and other future users in right direction.</p>