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

Call to a member function display() on a non-object #37

Closed
shahkeyurc opened this issue Jun 11, 2016 · 3 comments
Closed

Call to a member function display() on a non-object #37

shahkeyurc opened this issue Jun 11, 2016 · 3 comments

Comments

@shahkeyurc
Copy link

Hello,
I have added plugin, and while rendering the captcha it is giving me following error:

Call to a member function display() on a non-object

I am using Laravel teeplus theme plugin for displaying front end of my webapplication.

@anhskohbo
Copy link
Owner

try dd(app('captcha')) to see what you get?

@andrewzan
Copy link

andrewzan commented Jul 26, 2016

I tried running it

dd(app('captcha'))

(in blade template) and it fails

but if I use this syntax, it shows:

<?php
$captcha = new \Anhskohbo\NoCaptcha\NoCaptcha('4567i', '43567');      
echo $captcha->display();
//dd($captcha);
?>

@anhskohbo
Copy link
Owner

Maybe you missing Anhskohbo\NoCaptcha\NoCaptchaServiceProvider::class, in providers. Pls read install doc: https://github.com/anhskohbo/no-captcha#laravel-5

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

3 participants