msurguy / Honeypot

Simple spam prevention package for Laravel applications
maxoffsky.com/code-blog/implementing-honeypot-spam-prevention-in-laravel-applications/
MIT License
429 stars 44 forks source link

FormBuilder not found on L5 #33

Closed mgallegos closed 9 years ago

mgallegos commented 9 years ago

I'm getting the following error using Laravel 5.0.31:

FatalErrorException in HoneypotServiceProvider.php line 91:
Class 'Illuminate\Html\FormBuilder' not found
in HoneypotServiceProvider.php line 91
at FatalErrorException->__construct() in HandleExceptions.php line 131
at HandleExceptions->fatalExceptionFromError() in HandleExceptions.php line 116
at HandleExceptions->handleShutdown() in HandleExceptions.php line 0
at HoneypotServiceProvider->registerFormMacro() in HoneypotServiceProvider.php line 57
at HoneypotServiceProvider->Msurguy\Honeypot\{closure}() in Application.php line 862
at call_user_func:{/Users/mario/workspace/laravel/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:862}() in Application.php line 862
at Application->fireAppCallbacks() in Application.php line 690
at Application->boot() in BootProviders.php line 15
at BootProviders->bootstrap() in Application.php line 183
at Application->bootstrapWith() in Kernel.php line 199
at Kernel->bootstrap() in Kernel.php line 110
at Kernel->sendRequestThroughRouter() in Kernel.php line 84
at Kernel->handle() in index.php line 53
in server.php line 21
at {main}() in server.php line 0
garygreen commented 9 years ago

Are you including illuminate\html (not part of core L5 anymore) or are you using Laravel Collective form?

mgallegos commented 9 years ago

Yes, I'm using Laravel Collective form.

garygreen commented 9 years ago

That's not currently supported. You can use the Honeypot facade though, will do the same thing. Honeypot::getFormHTML('my_name', 'my_time')

mgallegos commented 9 years ago

I guess I better use illuminate\html

Thanks!