Package Data | |
---|---|
Maintainer Username: | TortueTorche |
Maintainer Contact: | tortuetorche@spam.me (Tortue Torche) |
Package Create Date: | 2014-07-08 |
Package Last Update: | 2021-01-07 |
Home Page: | https://packagist.org/packages/efficiently/jquery-laravel |
Language: | JavaScript |
License: | MIT |
Last Refreshed: | 2024-12-03 03:03:56 |
Package Statistics | |
---|---|
Total Downloads: | 10,319 |
Monthly Downloads: | 68 |
Daily Downloads: | 2 |
Total Stars: | 13 |
Total Watchers: | 2 |
Total Forks: | 4 |
Total Open Issues: | 1 |
jQuery! For Laravel 5.5, 5.6 and 5.7! So great.
This package provides:
The jquery-laravel
package follows these version guidelines
to provide more control over your app's jQuery version from your composer.json
file:
patch version bump = updates to jquery-ujs, jquery-laravel, and patch-level updates to jQuery
minor version bump = minor-level updates to jQuery
major version bump = major-level updates to jQuery and updates to Laravel/Larasset which may be backwards-incompatible
For Laravel 5.1, 5.2, 5.3 or 5.4 supports see jQuery-Laravel 2.3 branch
For Laravel 5.1 or 5.2 supports see jQuery-Laravel 2.1 branch
For Laravel 5.0 supports see jQuery-Laravel 2.0 branch
For Laravel 4.1 or 4.2 supports see jQuery-Laravel 1.0 branch
You must install Node.js on your computer (development environment).
This package version is only compatible with PHP >= 7.0 and Laravel >= 5.5 framework.
Read the wiki Installation Instructions page, if you don't want to use the Larasset package
Or, if you want to use the Larasset package which include jquery-laravel
by default:
Just make a new app
composer create-project laravel/laravel your-project-name --prefer-dist
Go inside your new app path
cd your-project-name
Then install Larasset package
Click here to follow the installation instructions of this package.
NOTE: The jquery.js
and jquery-ujs.js
files will be added to the asset pipeline and available for you to use.
If they're not already in resources/js/app.js
by default, add these lines:
//= require jquery
//= require jquery_ujs
If you want to use jQuery 2, you can require jquery2
instead:
//= require jquery2
//= require jquery_ujs
And if you want to use jQuery 3, you can require jquery3
:
//= require jquery3
//= require jquery_ujs
Feel free to open an issue ticket if you find something that could be improved. A couple notes:
If it's an issue pertaining to the jquery-ujs
javascript, please report it to the jquery-ujs project.
If the jQuery scripts are outdated (i.e. maybe a new version of jQuery was released yesterday), feel free to open an issue and prod us to get that thing updated. However, for security reasons, we won't be accepting pull requests with updated jQuery scripts.
This package is a port of the jquery-rails gem from the Ruby on Rails framework.
Released under the MIT License.