Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Blade Javascript Laravel Package

spatie/laravel-blade-javascript

Adds a simple @javascript Blade directive to export PHP values to JavaScript by writing them to window in a script tag. Use @javascript('key','value') and access it in the browser as key/value for quick server-to-client data sharing.

View on GitHub
Deep Wiki
Context7
2.6.0
  • support PHP 8
2.5.2
  • escape tags in strings (#52)
2.5.1
  • Add support for Laravel 8
2.5.0
  • Add support for Laravel 7
2.4.1
  • Changed: Updated Laravel 6 compatibility for future versions
2.4.0
  • Added: Laravel 6 compatibility
2.3.0
  • drop support for L5.7 and below, PHP 7.1 and PHPUnit 7
2.2.2
  • Added: Laravel 5.8 compatibility
2.2.1
  • Added: Laravel 5.7 compatibility
2.2.0
  • Added: a publishable view
2.1.2
  • Rendering improvements
2.1.1
  • Refactor the way the directive is registered
2.1.0
  • Added: Laravel 5.6 compatibility
2.0.1
  • Changed: Improve service provider internals
2.0.0
  • Added: Laravel 5.5 compatibility
  • Changed: Renamed config file from laravel-blade-javascript to blade-javascript
1.1.0
  • Added: Laravel 5.4 compatibility
1.0.6
  • Added: Laravel 5.3 compatibility
1.0.5
  • Fixed: Bug where floats were casted to ints
1.0.4
  • Removed: Type attribute on script tags
1.0.3
  • Fixed: Bug where functions passed to the directive would cause an error
1.0.2
  • Fixed: Improved handling of namespaces with special characters
1.0.1
  • Fixed: Exporting of variables when no namespace has been set
1.0.0
  • Initial release
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
oxygen/data
oxygen/core
jengo/base
xiloryx/log-collector
a21ns1g4ts/filament-stripe
la-php/laravel-admin
artisan-build/community-prompts
vleroy/smart
ayles-software/laravel-australian-public-holidays
cboxdk/laravel-id-spatie
cboxdk/laravel-id-billing
cboxdk/laravel-id-billing-bridge
simple-as-fuck/php-performance-log
hsluv/hsluv
seampact/codegen
seampact/hooks
seampact/ir
mehedimi/laravel-amp-mail
happones/laravel-vue-i18n-generator
jwerd/inertia-table