Commit 092cdd31 authored by Gregory Van der Steen's avatar Gregory Van der Steen

Omit bound check, because Form might not be bound in boot() method.

parent ec891241
...@@ -26,14 +26,11 @@ class NoCaptchaServiceProvider extends ServiceProvider { ...@@ -26,14 +26,11 @@ class NoCaptchaServiceProvider extends ServiceProvider {
{ {
return $app['captcha']->verifyResponse($value, $app['request']->getClientIp()); return $app['captcha']->verifyResponse($value, $app['request']->getClientIp());
}); });
if ($app->bound('form')) $app['form']->macro('captcha', function($attributes = array()) use ($app)
{ {
$app['form']->macro('captcha', function($attributes = array()) use ($app) return $app['captcha']->display($attributes);
{ });
return $app['captcha']->display($attributes);
});
}
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment