Laravel Packages / February 26, 2014

PHP Variables to JavaScript

Often, you’ll find yourself in situations, where you want to pass some server-side string/array/collection/whatever to your JavaScript. Traditionally, this can be a bit of a pain – especially as your app grows.

This is a new package from Jeffrey Way at Laracasts that will allow you to easily pass php variables to your JavaScript.

This has so many good use cases and I know it’s going into my workflow.

Laravel News Partners

Newsletter

Join the weekly newsletter and never miss out on new tips, tutorials, and more.