tequilarapido / javascript-blade
Installs: 10 738
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 4
Forks: 1
Open Issues: 1
Requires
- laravel/framework: ~5.8.0|^6.0|^7.0
Requires (Dev)
- mockery/mockery: ^0.9.5
- orchestra/testbench: ^3.2
- phpunit/phpunit: 4.*
This package is auto-updated.
Last update: 2024-11-14 08:11:11 UTC
README
Contents
Installation
You can install the package using composer
$ composer require tequilarapido/javascript-blade
Add to application providers :
Tequilarapido\JavascriptBlade\JavascriptBladeProvider::class
Usage
@javascript('i18n', $translations)
// Produces
<script>
window.App || window.App = {}; App.i18n = '<json encoded translations>';
</script>
Changelog
Please see CHANGELOG for more information what has changed recently.
Testing
$ composer test
Security
If you discover any security related issues, please email :author_email instead of using the issue tracker.
Contributing
Please see CONTRIBUTING for details.
Credits
License
The MIT License (MIT). Please see License File for more information.