buonzz / laravel-jquery
jQuery Assets and Blade Extensions for Laravel
v1.0.0
2014-08-23 12:23 UTC
Requires
- php: >=5.4.0
- illuminate/support: 4.2.*
This package is auto-updated.
Last update: 2024-11-06 09:33:32 UTC
README
This package makes the jQuery Assets and Blade Extensions available for use in your blade templates.
Installation
Edit your composer.json file, add this in the require property:
"buonzz/laravel-jquery": "1.*"
fetch the package by:
composer update
Add the service provider in your config/app.php file
'Buonzz\LaravelJquery\LaravelJqueryServiceProvider'
Publish the assets
php artisan asset:publish
Usage
Use this Blade template tag to insert the js tag inside the head/body tag
{{@jquery_js_tag}}
Your template should now have jQuery loaded