Git Product home page Git Product logo

jquery-laravel's Introduction

jquery-laravel Build Status

jQuery! For Laravel 6, 7 and 8! So great.

This package provides:

  • jQuery 1, 2 and 3
  • the jQuery UJS adapter

Versions

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.5, 5.6 or 5.7 supports see jQuery-Laravel 2.4 branch

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

Prerequisites

You must install Node.js on your computer (development environment).

This package version is only compatible with PHP >= 7.2 and Laravel >= 6 framework.

Installation

Read the wiki Installation Instructions page.

Contributing

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.

Credits

This package is a port of the jquery-rails gem from the Ruby on Rails framework.

Acknowledgements

Released under the MIT License.

jquery-laravel's People

Contributors

tortuetorche avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

jquery-laravel's Issues

Missing argument 1 for App\Http\Controllers\Controller::redirectTo()

Since Laravel 5.3.29, if you get this Error Exception:

Missing argument 1 for App\Http\Controllers\Controller::redirectTo(),
called in /home/username/my_app/vendor/laravel/framework/src/Illuminate/Foundation/Auth/RedirectsUsers.php on line 15
and defined in /home/username/my_app/vendor/efficiently/jquery-laravel/src/Efficiently/JqueryLaravel/ControllerAdditions.php line 93

Here the workaround:
In your app/Http/Controllers/Auth/LoginController.php, app/Http/Controllers/Auth/RegisterController.php and app/Http/Controllers/Auth/ResetPasswordController.php files , you should replace the redirectTo() call to redirectUserTo().

//...
class LoginController extends Controller
{
    //...

    /**
     * Get the post register / login redirect path.
     * And keep Efficiently\JqueryLaravel\ControllerAdditions::redirectTo()
     *
     * @see https://github.com/efficiently/jquery-laravel/issues/1
     * @return string
     */
    public function redirectPath()
    {
        if (method_exists($this, 'redirectUserTo')) {
            return $this->redirectUserTo();
        }
        return property_exists($this, 'redirectTo') ? $this->redirectTo : '/home';
    }
}

So the ControllerAdditions::redirectTo() method works again ๐Ÿ˜ธ

Source: laravel/framework#16896

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.