Laravel Javascript Validation

Overview

Laravel Javascript Validation

Latest Version Build Status Code Coverage Quality Score Total Downloads Reviewed by Hound

Laravel Javascript Validation package allows to reuse your Laravel Validation Rules, Messages, FormRequest and Validators to validate forms automatically in client side without need to write any Javascript code or use HTML Builder Class.

You can validate forms automatically referencing it to your defined validations. The messages are loaded from your validations and translated according your Localization preferences.

Supported versions

Laravel 5.6 - 8.x

Feature overview

Supported Rules

Almost all Validation Rules provided by Laravel and other packages are supported.

Almost are validated in client-side using Javascript, but in some cases, the validation should to be done in server-side via AJAX:

Unsupported Rules

Some Laravel validations are not implemented yet.

Getting started

The easiest way to create Javascript validations is using Laravel Form Request Validation.

Installation

Follow the Installation Guide to install the package. The default config should work out-of-box

Validating Form Request

Call JsValidator Facade in your view to validate any FormRequest

<form>
    <!-- ... My form stuff ... -->
</form>

<!-- Javascript Requirements -->
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.1/js/bootstrap.min.js"></script>

<!-- Laravel Javascript Validation -->
<script type="text/javascript" src="{{ asset('vendor/jsvalidation/js/jsvalidation.js')}}"></script>

{!! JsValidator::formRequest('App\Http\Requests\MyFormRequest') !!}

Take a look to Basic Usage or Examples to get more information.

Documentation

To get more info refer to Project Wiki

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Credits

Laravel Javascript Validation contributors list

License

The MIT License (MIT). Please see License File for more information.

Comments
  • Laravel 5.4 Support

    Laravel 5.4 Support

    You will need to change the following in /laravel-jsvalidation/src/JsValidatorFactory.php:

    if ($session = $request->getSession()) {
        $formRequest->setSession($session);
    }
    

    to

    if ($session = $request->getSession()) {
        $formRequest->setLaravelSession($session);
    }
    

    This change will cause incompatibility with Laravel 5.3 and below but get's your 5.4 working.

    opened by reganjohnson 24
  • Multidimensional array wildcard validation

    Multidimensional array wildcard validation

    Hi! I have found a lot of old issues about this problem and it seems like all of them were fixed here: https://github.com/proengsoft/laravel-jsvalidation/pull/197 But it doesn't work. Here is the basic code to reproduce: HTML:

    <!DOCTYPE html>
    <html>
        <head>
            <meta charset="utf-8">
        </head>
        <body>
            <form method="POST" action="{{route('dummy-post')}}">
                {{csrf_field()}}
                <input name="title[0][test]" type="text">
    
                <button type="submit">Submit</button>
            </form>
            {!! JsValidator::formRequest('App\Http\Requests\MyFormRequest') !!}
        </body>
    </html>
    

    PHP:

    <?php
    
    namespace App\Http\Requests;
    
    use Illuminate\Foundation\Http\FormRequest;
    
    class MyFormRequest extends FormRequest
    {
        public function authorize()
        {
            return true;
        }
        
        public function rules()
        {
            return [
                'title.*.test' => 'required',
            ];
        }
    }
    

    In this case rules array is empty on my page: rules: [] })

    If I change rules in FormRequest to this:

    public function rules()
     {
            return [
                'title.0.test' => 'required',
            ];
        }
    

    everything works just fine: rules: {"title[0][test]":{"laravelValidation":[["Required",[],"The title.0.test field is required.",true]]}} })

    What am I doing wrong? Laravel: v5.4.36 JsValidation: v2.1.0 PHP: 7.1.0

    bug 
    opened by Organizm238 16
  • Handle 'UNIQUE' validation without giving fatal error of duplicate entry.

    Handle 'UNIQUE' validation without giving fatal error of duplicate entry.

    How can i manage the 'unique:tablename' validation with this plugin just like any other errors.

    For eg, 'required' error does not throw a fatal error like 'unique' does. I want to handle 'unique' errors just like any other errors.

    Thank you in advance.

    opened by Varun006 16
  • Release 2.0

    Release 2.0

    We are close to 2.0 release!

    Please read changelog and test dev-master in your applications. If no issues would be reported today - I'll make a release tomorrow.

    CC: @simonigd @akkhan20 @bastman69 @asurace

    opened by antonkomarev 15
  • Using with CKEditor plugin

    Using with CKEditor plugin

    Hello, I'm using the CKEditor (https://ckeditor.com/) plugin for texts. The validation via Request without the Laravel JS-Validation plugin happens, but with it active it ends up happening without being validated.

    Could someone help me how could I do this validation?

    opened by garbinmarcelo 13
  • array_key_exists() expects parameter 2 to be array, boolean given (View: C:\wamp\www\aot\resources\views\pages\subjectcategory\add_subject_category.blade.php)

    array_key_exists() expects parameter 2 to be array, boolean given (View: C:\wamp\www\aot\resources\views\pages\subjectcategory\add_subject_category.blade.php)

    Iam getting the issue array_key_exists() expects parameter 2 to be array, boolean given (View: C:\wamp\www\aot\resources\views\pages\subjectcategory\add_subject_category.blade.php) while including jsvalidator

    opened by bindusree 13
  • Laravel 5.4 Fixes with Tests

    Laravel 5.4 Fixes with Tests

    I've updated the code and the tests to work with Laravel 5.4 and thus created breaking changes against previous versions. I wasn't sure what to do with your testing setup as there are multiple composer.json's for the different Laravel versions to be tested. But these don't seem to be needed anymore as the code changes I've done will break on previous Laravel versions.

    I've had to create a proxy class for the ValidationRuleParser because its parse function is static and it didn't seem like you could mock static functions. I've done this to allow the DelegatedValidator to be tested. Annoyingly it will be the only class in your code base not being tested, so interested in what your thoughts are.

    Thanks Chris

    opened by CWDN 13
  • How do we use the remote Validation with a Form Request?

    How do we use the remote Validation with a Form Request?

    Hi, I've just upgraded from an old version to the latest today (but I have ensured the latest files are in use and republished etc) and I'm very confused how to utilise the ajax validation on rules like unique or exists.

    Firstly, everything was working!

    I know what this package does and I haven't had any issues. If I also change the new config option disable_remote_validation to true, my form works perfectly again.

    However, I'd like to take advantage of the new ajax validation this package provides!

    Could someone tell me what I'm supposed to be doing.

    In my routes file, I have this:

    //routes.php
    Route::get('/', ['uses' => 'RegisterTelegramController@register']);
    Route::post('/', ['as' => 'processRegistration', 'uses' => 'RegisterTelegramController@processRegistration']);
    

    This shows my registration form, and processes the form once it is POSTED.

    My processRegistration() method that deals with the POSTED data, uses a FormRequest for the validation.:

    //RegisterTelegramController.php
    
        public function processRegistration(RegisterTelegramId $request)
        {
            //Member WILL exist because validation form has checked.
            //Add users registration details to database.
            //Return success message
        }
    

    My form request is simple:

    //FormRequest called RegisterTelegramId.php
    <?php namespace App\Http\Requests;
    
    class RegisterTelegramId extends Request
    {
    
        public function rules()
        {
            return [
                'username' => 'required|exists:ibf_members,members_l_username',
                'password' => 'required',
                'telegramId' => 'required|digits_between:8,11'
            ];
        }
    }
    

    My html form, is simple (I've removed ALL styling and non useful info).

    <!DOCTYPE html>
    <body>
    {!! Form::open(['route'=>'processRegistration', 'id' => 'tgregister', 'role' => 'form']) !!}
    <input type="text" name="username" value="{{ old('username') }}">
    <input type="password" name="password">
    <input type="text" name="telegramId" value="{{ old('telegramId') }}">
    <button type="submit">Submit</button>
    {!! Form::close() !!}
    
    {!! JsValidator::formRequest('App\Http\Requests\RegisterTelegramId', '#tgregister') !!}
    </body>
    </html>
    

    So this all works fine when I DON'T use the ajax validation.

    When I do use ajax validation, and say for example I put a value in the username field and tab to the next field, a POST request is sent to the form URL with the following parameters:

    username=joebloggs&_jsvalidation=username

    However my server returns a server 500 error - as I assume it doesn't know how to respond to this POST request.

    What am I missing? What should my processRegistration() method in my controller be doing when it gets that ajax request?

    Any help would be much appreciated.

    enhancement 
    opened by jonnywilliamson 13
  • Configure Remote Validations

    Configure Remote Validations

    Hi!

    I added control to allow use or not Remote Validation. Currently I don't want use because I have my project created with this checks at POST process then I don't interested to create per each Remote Validation Rule a request to check it.

    Thank you Samuel

    opened by samuelfa 13
  • Min rule doesn't work with arrays

    Min rule doesn't work with arrays

    Min rule in array, does't work

    Issue with validation, because of min rule don't count in proper way length of the value.

    Your environment

    • version of this package: 4.4.3
    • version of Laravel: 8.35.0

    Steps to reproduce

    On register.blade.php

    <form>
        // ...
        <input id="user_group-password" type="password" class="form-control" name="user_group[password]" aria-describedby="basic-addon2" required>
        // ...
    </form>
    

    On RegisterRequest.php

    public function rules(): array
    {
        'user_group.password' => "required|string|min:8|max:255|confirmed",
    }
    

    on webbrowser:

    The Password must be at least 8.
    

    even if I put more than 8 signs.

    Expected behaviour

    Min rule start to works on arrays.

    Actual behaviour

    Min rule don't recognize array values lengths?

    bug help wanted 
    opened by LocalHeroPro 11
  • Critical error with numeric min & max values

    Critical error with numeric min & max values

    If you are checking numeric values javascript is checking it for a length, not the min & max values.

    For example:

    'age_min' => ['numeric', 'min:6', 'max:50'],
    

    Will return error if you are bypassing age_min = 30, but will return ok if you will write 123456.

    bug 
    opened by antonkomarev 11
  • chore(deps): bump nick-invision/retry from 2.8.2 to 2.8.3

    chore(deps): bump nick-invision/retry from 2.8.2 to 2.8.3

    Bumps nick-invision/retry from 2.8.2 to 2.8.3.

    Release notes

    Sourced from nick-invision/retry's releases.

    v2.8.3

    2.8.3 (2022-12-30)

    Bug Fixes

    Commits

    Dependabot compatibility score

    You can trigger a rebase of this PR by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies github_actions 
    opened by dependabot[bot] 1
  • chore(deps-dev): bump @babel/cli from 7.18.6 to 7.20.7

    chore(deps-dev): bump @babel/cli from 7.18.6 to 7.20.7

    Bumps @babel/cli from 7.18.6 to 7.20.7.

    Release notes

    Sourced from @​babel/cli's releases.

    v7.20.7 (2022-12-22)

    Thanks @​wsypower for your first PR!

    :eyeglasses: Spec Compliance

    • babel-helper-member-expression-to-functions, babel-helper-replace-supers, babel-plugin-proposal-class-properties, babel-plugin-transform-classes
    • babel-helpers, babel-plugin-proposal-class-properties, babel-plugin-transform-classes, babel-plugin-transform-object-super

    :bug: Bug Fix

    • babel-parser, babel-plugin-transform-typescript
    • babel-traverse
    • babel-plugin-transform-typescript, babel-traverse
    • babel-plugin-transform-block-scoping
    • babel-plugin-proposal-async-generator-functions, babel-preset-env
    • babel-generator, babel-plugin-proposal-optional-chaining
    • babel-plugin-transform-react-jsx, babel-types
    • babel-core, babel-helpers, babel-plugin-transform-computed-properties, babel-runtime-corejs2, babel-runtime-corejs3, babel-runtime
    • babel-helper-member-expression-to-functions, babel-helper-replace-supers, babel-plugin-proposal-class-properties, babel-plugin-transform-classes
    • babel-generator

    :nail_care: Polish

    • babel-plugin-transform-block-scoping, babel-traverse

    :house: Internal

    • babel-helper-define-map, babel-plugin-transform-property-mutators
    • babel-core, babel-plugin-proposal-class-properties, babel-plugin-transform-block-scoping, babel-plugin-transform-classes, babel-plugin-transform-destructuring, babel-plugin-transform-parameters, babel-plugin-transform-regenerator, babel-plugin-transform-runtime, babel-preset-env, babel-traverse

    :running_woman: Performance

    Committers: 6

    ... (truncated)

    Changelog

    Sourced from @​babel/cli's changelog.

    v7.20.7 (2022-12-22)

    :eyeglasses: Spec Compliance

    • babel-helper-member-expression-to-functions, babel-helper-replace-supers, babel-plugin-proposal-class-properties, babel-plugin-transform-classes
    • babel-helpers, babel-plugin-proposal-class-properties, babel-plugin-transform-classes, babel-plugin-transform-object-super

    :bug: Bug Fix

    • babel-parser, babel-plugin-transform-typescript
    • babel-traverse
    • babel-plugin-transform-typescript, babel-traverse
    • babel-plugin-transform-block-scoping
    • babel-plugin-proposal-async-generator-functions, babel-preset-env
    • babel-generator, babel-plugin-proposal-optional-chaining
    • babel-plugin-transform-react-jsx, babel-types
    • babel-core, babel-helpers, babel-plugin-transform-computed-properties, babel-runtime-corejs2, babel-runtime-corejs3, babel-runtime
    • babel-helper-member-expression-to-functions, babel-helper-replace-supers, babel-plugin-proposal-class-properties, babel-plugin-transform-classes
    • babel-generator

    :nail_care: Polish

    • babel-plugin-transform-block-scoping, babel-traverse

    :house: Internal

    • babel-helper-define-map, babel-plugin-transform-property-mutators
    • babel-core, babel-plugin-proposal-class-properties, babel-plugin-transform-block-scoping, babel-plugin-transform-classes, babel-plugin-transform-destructuring, babel-plugin-transform-parameters, babel-plugin-transform-regenerator, babel-plugin-transform-runtime, babel-preset-env, babel-traverse

    :running_woman: Performance

    v7.20.6 (2022-11-28)

    :bug: Bug Fix

    v7.20.5 (2022-11-28)

    ... (truncated)

    Commits

    Dependabot compatibility score

    You can trigger a rebase of this PR by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies javascript 
    opened by dependabot[bot] 0
  • chore(deps-dev): bump @babel/core from 7.18.6 to 7.20.7

    chore(deps-dev): bump @babel/core from 7.18.6 to 7.20.7

    Bumps @babel/core from 7.18.6 to 7.20.7.

    Release notes

    Sourced from @​babel/core's releases.

    v7.20.7 (2022-12-22)

    Thanks @​wsypower for your first PR!

    :eyeglasses: Spec Compliance

    • babel-helper-member-expression-to-functions, babel-helper-replace-supers, babel-plugin-proposal-class-properties, babel-plugin-transform-classes
    • babel-helpers, babel-plugin-proposal-class-properties, babel-plugin-transform-classes, babel-plugin-transform-object-super

    :bug: Bug Fix

    • babel-parser, babel-plugin-transform-typescript
    • babel-traverse
    • babel-plugin-transform-typescript, babel-traverse
    • babel-plugin-transform-block-scoping
    • babel-plugin-proposal-async-generator-functions, babel-preset-env
    • babel-generator, babel-plugin-proposal-optional-chaining
    • babel-plugin-transform-react-jsx, babel-types
    • babel-core, babel-helpers, babel-plugin-transform-computed-properties, babel-runtime-corejs2, babel-runtime-corejs3, babel-runtime
    • babel-helper-member-expression-to-functions, babel-helper-replace-supers, babel-plugin-proposal-class-properties, babel-plugin-transform-classes
    • babel-generator

    :nail_care: Polish

    • babel-plugin-transform-block-scoping, babel-traverse

    :house: Internal

    • babel-helper-define-map, babel-plugin-transform-property-mutators
    • babel-core, babel-plugin-proposal-class-properties, babel-plugin-transform-block-scoping, babel-plugin-transform-classes, babel-plugin-transform-destructuring, babel-plugin-transform-parameters, babel-plugin-transform-regenerator, babel-plugin-transform-runtime, babel-preset-env, babel-traverse

    :running_woman: Performance

    Committers: 6

    ... (truncated)

    Changelog

    Sourced from @​babel/core's changelog.

    v7.20.7 (2022-12-22)

    :eyeglasses: Spec Compliance

    • babel-helper-member-expression-to-functions, babel-helper-replace-supers, babel-plugin-proposal-class-properties, babel-plugin-transform-classes
    • babel-helpers, babel-plugin-proposal-class-properties, babel-plugin-transform-classes, babel-plugin-transform-object-super

    :bug: Bug Fix

    • babel-parser, babel-plugin-transform-typescript
    • babel-traverse
    • babel-plugin-transform-typescript, babel-traverse
    • babel-plugin-transform-block-scoping
    • babel-plugin-proposal-async-generator-functions, babel-preset-env
    • babel-generator, babel-plugin-proposal-optional-chaining
    • babel-plugin-transform-react-jsx, babel-types
    • babel-core, babel-helpers, babel-plugin-transform-computed-properties, babel-runtime-corejs2, babel-runtime-corejs3, babel-runtime
    • babel-helper-member-expression-to-functions, babel-helper-replace-supers, babel-plugin-proposal-class-properties, babel-plugin-transform-classes
    • babel-generator

    :nail_care: Polish

    • babel-plugin-transform-block-scoping, babel-traverse

    :house: Internal

    • babel-helper-define-map, babel-plugin-transform-property-mutators
    • babel-core, babel-plugin-proposal-class-properties, babel-plugin-transform-block-scoping, babel-plugin-transform-classes, babel-plugin-transform-destructuring, babel-plugin-transform-parameters, babel-plugin-transform-regenerator, babel-plugin-transform-runtime, babel-preset-env, babel-traverse

    :running_woman: Performance

    v7.20.6 (2022-11-28)

    :bug: Bug Fix

    v7.20.5 (2022-11-28)

    ... (truncated)

    Commits

    Dependabot compatibility score

    You can trigger a rebase of this PR by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies javascript 
    opened by dependabot[bot] 0
  • fix(deps): bump terser from 5.14.0 to 5.16.1

    fix(deps): bump terser from 5.14.0 to 5.16.1

    Bumps terser from 5.14.0 to 5.16.1.

    Changelog

    Sourced from terser's changelog.

    v5.16.1

    • Properly handle references in destructurings (const { [reference]: val } = ...)
    • Allow parsing of .#privatefield in nested classes
    • Do not evaluate operations that return large strings if that would make the output code larger
    • Make collapse_vars handle block scope correctly
    • Internal improvements: Typos (#1311), more tests, small-scale refactoring

    v5.16.0

    • Disallow private fields in object bodies (#1011)
    • Parse #privatefield in object (#1279)
    • Compress #privatefield in object

    v5.15.1

    • Fixed missing parentheses around optional chains
    • Avoid bare let or const as the bodies of if statements (#1253)
    • Small internal fixes (#1271)
    • Avoid inlining a class twice and creating two equivalent but !== classes.

    v5.15.0

    • Basic support for ES2022 class static initializer blocks.
    • Add AudioWorkletNode constructor options to domprops list (#1230)
    • Make identity function inliner not inline id(...expandedArgs)

    v5.14.2

    • Security fix for RegExps that should not be evaluated (regexp DDOS)
    • Source maps improvements (#1211)
    • Performance improvements in long property access evaluation (#1213)

    v5.14.1

    • keep_numbers option added to TypeScript defs (#1208)
    • Fixed parsing of nested template strings (#1204)
    Commits

    Dependabot compatibility score

    You can trigger a rebase of this PR by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) You can disable automated security fix PRs for this repo from the Security Alerts page.
    dependencies javascript 
    opened by dependabot[bot] 1
  • fix(deps): bump minimatch from 3.0.4 to 3.1.2

    fix(deps): bump minimatch from 3.0.4 to 3.1.2

    Bumps minimatch from 3.0.4 to 3.1.2.

    Commits

    Dependabot compatibility score

    You can trigger a rebase of this PR by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) You can disable automated security fix PRs for this repo from the Security Alerts page.
    dependencies javascript 
    opened by dependabot[bot] 1
  • fix(deps): bump decode-uri-component from 0.2.0 to 0.2.2

    fix(deps): bump decode-uri-component from 0.2.0 to 0.2.2

    Bumps decode-uri-component from 0.2.0 to 0.2.2.

    Release notes

    Sourced from decode-uri-component's releases.

    v0.2.2

    • Prevent overwriting previously decoded tokens 980e0bf

    https://github.com/SamVerschueren/decode-uri-component/compare/v0.2.1...v0.2.2

    v0.2.1

    • Switch to GitHub workflows 76abc93
    • Fix issue where decode throws - fixes #6 746ca5d
    • Update license (#1) 486d7e2
    • Tidelift tasks a650457
    • Meta tweaks 66e1c28

    https://github.com/SamVerschueren/decode-uri-component/compare/v0.2.0...v0.2.1

    Commits

    Dependabot compatibility score

    You can trigger a rebase of this PR by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) You can disable automated security fix PRs for this repo from the Security Alerts page.
    dependencies javascript 
    opened by dependabot[bot] 1
Releases(v4.7.6)
  • v4.4.4(Apr 18, 2021)

    4.4.4 (2021-04-18)

    Bug Fixes

    • date comparisons in before/after rules (#640) 177dcd1

    Miscellaneous Chores

    • deps: bump actions/cache from v2.1.4 to v2.1.5 (#638) 9ca4c66
    • deps: bump ssri from 6.0.1 to 6.0.2 (#641) 2465fc6
    • deps-dev: bump @babel/cli from 7.12.10 to 7.13.14 (#630) b576140
    • deps-dev: bump @babel/plugin-transform-runtime (#635) 8b49188
    • deps-dev: bump @semantic-release/release-notes-generator (#626) c4ad537
    • deps-dev: bump webpack from 5.27.2 to 5.33.2 (#639) 862ed5c
    • deps-dev: bump webpack-cli from 4.5.0 to 4.6.0 (#628) 96902ca
    • deps-dev: bump y18n from 3.2.1 to 3.2.2 (#632) c532341
    Source code(tar.gz)
    Source code(zip)
  • v4.4.3(Mar 23, 2021)

    4.4.3 (2021-03-23)

    Bug Fixes

    • #613 - min/max rules check characters not array length 3c306dd

    Miscellaneous Chores

    • deps: bump actions/cache from v2 to v2.1.4 (#595) 1e787f1
    • deps: bump actions/setup-node from v2.1.4 to v2.1.5 (#606) 548826b
    • deps: bump amannn/action-semantic-pull-request (#601) 6efec81
    • deps-dev: bump @babel/core from 7.12.10 to 7.13.10 (#615) 7715c76
    • deps-dev: bump elliptic from 6.5.3 to 6.5.4 (#616) aaaa81a
    • deps-dev: bump semantic-release from 17.3.1 to 17.4.2 (#617) f4cbc79
    • deps-dev: bump webpack from 5.12.3 to 5.27.2 (#623) e91e140
    • deps-dev: bump webpack-cli from 4.3.1 to 4.5.0 (#591) 1045a13
    • deps-dev: bump webpack-stream from 6.1.1 to 6.1.2 (#585) 7cd1cc4
    • exclude dependabot from stale bot c156100
    Source code(tar.gz)
    Source code(zip)
  • v4.4.2(Jan 11, 2021)

    4.4.2 (2021-01-11)

    Bug Fixes

    • deps: bump jquery-validation from 1.19.2 to 1.19.3 (#568) ca3759f

    Continuous Integration

    • use pull_request_target event 0fcbe0c

    Miscellaneous Chores

    • deps: bump actions/setup-node from v2.1.2 to v2.1.3 (#555) ee04231
    • deps: bump actions/setup-node from v2.1.3 to v2.1.4 (#560) 0da499a
    • deps: bump amannn/action-semantic-pull-request (#535) 0d7ed84
    • deps: bump amannn/action-semantic-pull-request (#550) c9c000c
    • deps: bump amannn/action-semantic-pull-request (#563) dd2460d
    • deps: bump amannn/action-semantic-pull-request (#570) 3fb321f
    • deps: bump ini from 1.3.5 to 1.3.8 (#557) 40f2b0a
    • deps: update actions/checkout requirement to v2.3.4 (#536) 347aa3f
    • deps-dev: bump @babel/cli from 7.12.1 to 7.12.7 (#538) 6bd9338
    • deps-dev: bump @babel/cli from 7.12.7 to 7.12.8 (#542) 178910a
    • deps-dev: bump @babel/cli from 7.12.8 to 7.12.10 (#554) 928f19e
    • deps-dev: bump @babel/core from 7.12.3 to 7.12.7 (#539) c6d4798
    • deps-dev: bump @babel/core from 7.12.7 to 7.12.8 (#541) e129a42
    • deps-dev: bump @babel/core from 7.12.8 to 7.12.9 (#546) 166a006
    • deps-dev: bump @babel/core from 7.12.9 to 7.12.10 (#552) c83a8f3
    • deps-dev: bump @babel/plugin-transform-runtime (#553) 2c99a92
    • deps-dev: bump babel-loader from 8.2.1 to 8.2.2 (#548) 5ef9f02
    • deps-dev: bump semantic-release from 17.2.4 to 17.3.0 (#537) 50c922d
    • deps-dev: bump semantic-release from 17.3.0 to 17.3.1 (#566) 37c52ec
    • deps-dev: bump webpack from 5.10.0 to 5.10.1 (#558) bf359b9
    • deps-dev: bump webpack from 5.10.1 to 5.10.3 (#559) 71274e1
    • deps-dev: bump webpack from 5.10.3 to 5.11.0 (#562) 4eb51e2
    • deps-dev: bump webpack from 5.11.0 to 5.11.1 (#565) e338ac7
    • deps-dev: bump webpack from 5.11.1 to 5.12.3 (#569) a3b00a3
    • deps-dev: bump webpack from 5.6.0 to 5.8.0 (#547) 4969482
    • deps-dev: bump webpack from 5.8.0 to 5.9.0 (#549) 6b1acc3
    • deps-dev: bump webpack from 5.9.0 to 5.10.0 (#551) 6a8c557
    • deps-dev: bump webpack-cli from 4.2.0 to 4.3.0 (#564) ae708b9
    • deps-dev: bump webpack-cli from 4.3.0 to 4.3.1 (#567) 9d504a4
    Source code(tar.gz)
    Source code(zip)
  • v4.4.1(Nov 22, 2020)

    4.4.1 (2020-11-22)

    Bug Fixes

    • string.replace is not a function error on date comparison rules (#532) 8010f83

    Miscellaneous Chores

    • release: 4.1.1 [skip ci] 9cb191e

    Continuous Integration

    • add semantic-release (#534) 44e6776
    • dont persist git credentials 82a9b81
    • fix missing , in .releaserc (#540) 89001b4
    • update dependabot semantic commit prefix af8aa3a
    Source code(tar.gz)
    Source code(zip)
  • 4.4.0(Oct 7, 2020)

    4.4.0 - 2020-10-07

    Added experimental form request validation. All validation occurs via AJAX request on form submission. This resolves a number of issues regarding form request usage and unimplemented client side rules. See the PR for details on usage.

    Improvements

    • Experimental - Improved form request validation - #505
    Source code(tar.gz)
    Source code(zip)
  • 4.3.1(Oct 3, 2020)

  • 4.3.0(Sep 8, 2020)

  • 4.2.0(Sep 4, 2020)

  • 4.1.0(Jun 25, 2020)

  • 4.0.0(Apr 24, 2020)

    Breaking Changes

    • Content editable elements are now ignored when validating. This can be changed in the configuration file.
    • URL validation is no longer performed on the client side and instead uses an AJAX request
    • Validation messages containing HTML are now escaped to prevent XSS. This can be changed in the configuration file.
    • jsvalidation.js.map is no longer included. If you need it, please generate it yourself.

    Improvements

    • Switched to GitHub Actions (https://github.com/proengsoft/laravel-jsvalidation/pull/431)
    • Added Orchestra Test Bench (https://github.com/proengsoft/laravel-jsvalidation/pull/430)
    • Switched to Laravel Mix (https://github.com/proengsoft/laravel-jsvalidation/pull/441)
    • Validation messages containing HTML are now escaped (https://github.com/proengsoft/laravel-jsvalidation/pull/443)

    Bug Fixes

    • Fixed inconsistent URL validation (https://github.com/proengsoft/laravel-jsvalidation/pull/435)
    • Fixed contenteditable validation (https://github.com/proengsoft/laravel-jsvalidation/pull/434)
    • Fixed array wildcard validation (https://github.com/proengsoft/laravel-jsvalidation/pull/432)
    Source code(tar.gz)
    Source code(zip)
  • 3.0.1(Apr 10, 2020)

  • 3.0.0(Mar 15, 2020)

    Drops support for Laravel 5.4 and 5.5

    New features:

    • uikit support https://github.com/proengsoft/laravel-jsvalidation/pull/395
    • Laravel 7.x support https://github.com/proengsoft/laravel-jsvalidation/pull/415
    • Ability to escape validation messages https://github.com/proengsoft/laravel-jsvalidation/pull/329
    • withJsValidator support https://github.com/proengsoft/laravel-jsvalidation/pull/418
    • before_or_equal and after_or_equal validation rule support https://github.com/proengsoft/laravel-jsvalidation/pull/421

    Improvements:

    • Updated jquery-validation to latest https://github.com/proengsoft/laravel-jsvalidation/pull/409

    Bug fixes:

    • https://github.com/proengsoft/laravel-jsvalidation/issues/245 (https://github.com/proengsoft/laravel-jsvalidation/pull/330)
    • https://github.com/proengsoft/laravel-jsvalidation/issues/333 (https://github.com/proengsoft/laravel-jsvalidation/pull/334)
    • https://github.com/proengsoft/laravel-jsvalidation/issues/364 (https://github.com/proengsoft/laravel-jsvalidation/pull/419)
    • https://github.com/proengsoft/laravel-jsvalidation/issues/323 (https://github.com/proengsoft/laravel-jsvalidation/pull/420)
    Source code(tar.gz)
    Source code(zip)
  • 2.5.0(Sep 5, 2019)

  • 2.4.0(Mar 16, 2019)

  • 2.3.2(Oct 6, 2018)

  • 2.3.1(Sep 6, 2018)

Owner
Proengsoft
Proengsoft
Use your Laravel named routes in JavaScript

Ziggy – Use your Laravel routes in JavaScript Ziggy provides a JavaScript route() helper function that works like Laravel's, making it easy to use you

Tighten 3.1k Dec 28, 2022
Html Minifier adalah paket simpel untuk minify output Html, Css style, dan Javascript sebelum dirender ke browser untuk aplikasi Laravel anda.

Laravel Html Minifier Adalah Paket simpel untuk minify HTML, Css Style, dan Javascript sebelum dirender ke browser untuk aplikasi Laravel anda. Alat i

:D 16 Aug 17, 2022
Use your Laravel named routes in JavaScript

Ziggy – Use your Laravel routes in JavaScript Ziggy provides a JavaScript route() helper function that works like Laravel's, making it easy to use you

Tighten 3.1k Dec 28, 2022
Transform PHP data to JavaScript.

Transform PHP Vars to JavaScript Often, you'll find yourself in situations, where you want to pass some server-side string/array/collection/whatever t

Laracasts 2.2k Jan 1, 2023
A Blade directive to export variables to JavaScript

A Blade directive to export variables to JavaScript This package contains a Blade directive to export values to JavaScript. Here's an example of how i

Spatie 546 Dec 21, 2022
A pjax middleware for Laravel

A pjax middleware for Laravel Pjax is a jQuery plugin that leverages ajax to speed up the loading time of your pages. It works by only fetching specif

Spatie 505 Dec 28, 2022
A full-stack framework for Laravel that takes the pain out of building dynamic UIs.

Laravel Livewire See the docs for everything: https://laravel-livewire.com/docs/quickstart Awesome Livewire stuff here: https://github.com/imliam/awes

Livewire 17.7k Dec 31, 2022
Laravel Javascript Validation

Laravel Javascript Validation Laravel Javascript Validation package allows to reuse your Laravel Validation Rules, Messages, FormRequest and Validator

Proengsoft 991 Jan 4, 2023
Declarative style of authorization and validation in laravel.

Laravel Hey Man Readability Counts. In fact, Readability is the primary value of your code !!! ?? Heyman continues where the other role-permission pac

Iman 860 Jan 1, 2023
A package for Laravel One Time Password (OTP) generator and validation without Eloquent Model, since it done by Cache.

Laravel OTP Introduction A package for Laravel One Time Password (OTP) generator and validation without Eloquent Model, since it done by Cache. The ca

Lim Teck Wei 52 Sep 6, 2022
🔒 Laravel validation rule that checks if a password has been exposed in a data breach.

?? Laravel Password Exposed Validation Rule This package provides a Laravel validation rule that checks if a password has been exposed in a data breac

Jordan Hall 85 Apr 26, 2022
Laravel Livewire (TALL-stack) form generator with realtime validation, file uploads, array fields, blade form input components and more.

TALL-stack form generator Laravel Livewire, Tailwind forms with auto-generated views. Support Contributions Features This is not an admin panel genera

TinaH 622 Jan 2, 2023
European green-pass decoding and validation for php/laravel

laravel-greenpass laravel-greenpass is a package for the management of the European Green Pass (i.e. covid certification). The package allows easy val

Roberto Gallea 8 Dec 15, 2021
Laravel style jquery validation plugin

Validator Laravel style jquery validation plugin Validator is a jQuery plugin that emulates the validation class found in the laravel framework. Usage

David Thingsaker 5 Aug 31, 2022
Facebook GraphQL for Laravel 5. It supports Relay, eloquent models, validation and GraphiQL.

Laravel GraphQL This package is no longuer maintained. Please use rebing/graphql-laravel or other Laravel GraphQL packages Use Facebook GraphQL with L

Folklore Inc. 1.8k Dec 11, 2022
高性能的验证器组件(Validation),适用于 Hyperf 或 Laravel 框架,可获得数百倍的性能提升

验证器 简介 兼容 Hyperf/Laravel Validation 规则 部分场景可获得约 500 倍性能提升 验证器可多次复用不同数据,无状态设计 规则可全局复用 智能合并验证规则 安装 环境要求 PHP >= 8.0 mbstring 扩展 ctype 扩展 安装命令 composer re

KK集团 80 Dec 9, 2022
🛂 Use this package to validate the identity card from your country using laravel validation rules.

Identity Card Checker Laravel Validation Rules Use this package to validate the identity card number from your country Installation You can install th

David Torralbo Pérez 13 Feb 8, 2022
laravel adminlte with crud upload photo, ckeditor, validation & rest api

laravel crud with adminlte + restapi feature : Auth crud product (datatable, upload product using ajax, description with ckeditor) crud category displ

Dani 0 Jan 6, 2022
Extension for the Laravel validation class

Intervention Validation Intervention Validation is an extension library for Laravel's own validation system. The package adds rules to validate data l

null 370 Dec 30, 2022
Strongly typed settings for Laravel, includes built-in encryption and friendly validation.

Strongly Typed Laravel Settings Install composer require bogdankharchenko/typed-laravel-settings Model Setup namespace App\Models\User; use Illuminat

Bogdan Kharchenko 10 Aug 31, 2022