-
Notifications
You must be signed in to change notification settings - Fork 236
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
Update for multiple app('captcha')->display() on the same page #57
Conversation
registerin the service provider with singleton instead of bind will return always the same object per page load. with this methos is possible to insert a control variable in the class and use it to call the api only once.
ading this var control will permit to request the api only once. this will work with the singleton register on te serviceprovider file.
Thanks for pull request, pls check my code review. |
I need test this pr before make a new release |
sure ^^ |
Hi seltix5, could you give me a example about multiple widgets in a page? |
hi! {!! app('captcha')->display() !!} when usign multipla instance we should call only the functio multiple_display like this : {!! app('captcha')->multiple_display() !!} what do you think? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.
with this update will be possible to just call the noRecaptcha on the same page without requesting the api multiple times, just like this :
app('captcha')->display()