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

Recaptcha::render() should not return a view that is cast to a string #105

Open
lrathbun opened this issue Feb 27, 2016 · 0 comments
Open

Comments

@lrathbun
Copy link

Recaptcha::render() should return the rendered view (a string):

return app('view')->make($view, $data)->render();

rather than the view (which will be cast to a string with __toString() ):

return app('view')->make($view, $data);

The difference is in the error reporting. The former gives an informative error message, the later does not.

See this StackOverflow question for a little more info.

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

No branches or pull requests

2 participants