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

Manager::__toString() must not throw an exception error #69

Closed
tpacuszka opened this issue Sep 7, 2015 · 6 comments
Closed

Manager::__toString() must not throw an exception error #69

tpacuszka opened this issue Sep 7, 2015 · 6 comments
Milestone

Comments

@tpacuszka
Copy link

Hello I try to implement laravel-jsvalidation in my app, and in controller I try:

$validator = JsValidator::make(['field0' => 'min:3']);
return view('registration.registration')->with(['validator' => $validator]);

and than in view:
{!! $validator !!}

and I get:
Manager::__toString() must not throw an exception error
What's the problem? It's laravel 5.1

@torrentalle
Copy link
Member

I can't reproduce your issue.
In the view render validator using {!! $validator->render() !!} and post the exception that is throwed
Are you using other validation package?

@antonkomarev
Copy link
Contributor

I've recieved such error when used Unique With Validator. After that I've stopped to use Unique validator.
But I'm not sure it's an error of current package, because here is a ticket with similar issue in package provided above.

@torrentalle
Copy link
Member

Currently only is supported native Laravel Validations. Laravel Validation Factory resolver only accepts one resolver, so only one Validation package can be installed.
I'm working on a solution to solve this limitation

@dennisoderwald
Copy link

Update eta @torrentalle?

@torrentalle torrentalle added this to the 1.2 milestone Sep 18, 2015
@torrentalle
Copy link
Member

Added support for using Valiadator packages and classes. By default are validate using Ajax like database validations. This feature is ready to test. See pull #79

torrentalle added a commit that referenced this issue Sep 20, 2015
Allow class validations. Resolves issue #69
@torrentalle
Copy link
Member

This feature is published to v1.2.0rc1 pre-release.
I'm preparing the documentation before to launch the production release

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

4 participants