The Laravel plugin
Warning. These examples work with the version 2.x of the Jaxon library.
This example shows the usage of the Jaxon plugin for the Laravel framework.
The configuration file, the classes and the views are found here.
How it works
Install and configure the Jaxon plugin for Laravel, as described in the plugin documentation.
In the application controller, insert the code generated by Jaxon in the page.
use LaravelJaxon;
class DemoController extends Controller
{
public function index()
{
// Register the Jaxon classes
LaravelJaxon::register();
// Print the page
return view('index', array(
'JaxonCss' => LaravelJaxon::css(),
'JaxonJs' => LaravelJaxon::js(),
'JaxonScript' => LaravelJaxon::script()
));
}
}