wojciechjurkowski / tg-data-to-js
assign data and trans to js helper
This package's canonical repository appears to be gone and the package has been frozen as a result.
v1.0.5
2016-05-18 09:05 UTC
Requires
- php: ~5.5|~7.0
- illuminate/support: ~5.1
- laracasts/utilities: ^2.1
Requires (Dev)
- phpunit/phpunit: 4.*
- scrutinizer/ocular: ~1.1
- squizlabs/php_codesniffer: ~2.3
This package is not auto-updated.
Last update: 2020-10-13 03:28:09 UTC
README
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.