Transform php variables to javascript

How to transform your PHP to JavaScript – Laravel

Often, you find yourself in a situation where you want to pass your server-side variables, string, collection to JavaScript. By traditional old ways it can be a bit of pain especially when your application grows.

In this tutorial I will guide on how to pass php variable to JavaScript, elegantly. For this purpose, Jeffery Way from Laracasts has created a package called utilities with following name space: laracasts/utilities.

Read More