wojciechjurkowski/tg-data-to-js

assign data and trans to js helper

v1.0.5 2016-05-18 09:05 UTC

This package is not auto-updated.

Last update: 2020-10-13 03:28:09 UTC


README

Latest Version on Packagist Software License Build Status Coverage Status Quality Score Total Downloads

Install

Via Composer

$ composer require wojciechjurkowski/tg-data-to-js

Add ServiceProvider to config/app.

WojciechJurkowski\TgDataToJs\TgDataToJsServiceProvider::class,

And publish config.

$ php artisan vendor:publish --provider="Laracasts\Utilities\JavaScript\JavaScriptServiceProvider"

Usage

in your main layout include:

@include('TgDataToJs::assign-data-to-js')

in config file set view that receive data and namespace to:

'bind_js_vars_to_this_view' => 'TgDataToJs::assign-data-to-js',
'js_namespace' => 'Global'

Security

If you discover any security related issues, please email woj.jurkowski@gmail.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.