Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Session errors (alert.config) returning only one error i.e. the last error #41

Closed
harshsiimteq opened this issue May 22, 2019 · 3 comments

Comments

@harshsiimteq
Copy link

  • Package Version: ^1.1
  • Laravel Version: 5.8.*

Description:

Session errors returning only one error

Steps To Reproduce:

I have created one update form, in which there are 5 fields, all fields validations are taken care by laravel validator.
In my form 2 fields are unique, so I entered value which are already taken by other model, which means they were not unique, so I should get 2 error message for both field but I am getting only last one.

@if ($errors->any())
      @foreach ($errors->all() as $error)
          @php
             toast($error, 'error', 'bottom-right')->autoClose(3000);
          @endphp
     @endforeach
@endif

These piece of code giving me only last error toast.

@harshsiimteq harshsiimteq changed the title Session errors returning only one error Session errors (alert.config) returning only one error i.e. the last error May 22, 2019
@realrashid
Copy link
Owner

Watch this https://youtu.be/bE8Err1twRw?t=482.
I will add some more methods for validation soon in feature release.

@realrashid
Copy link
Owner

Hey @harshsiimteq check out the docs.

@harshsiimteq
Copy link
Author

Ok Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants