@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | $this->loadRoutesFrom(__DIR__ . '/../routes.php'); |
| 31 | 31 | |
| 32 | 32 | // 注册验证器 |
| 33 | - Validator::extend('captcha', function ($attribute, $value) { |
|
| 33 | + Validator::extend('captcha', function($attribute, $value) { |
|
| 34 | 34 | |
| 35 | 35 | return $this->app['captcha']->check($value); |
| 36 | 36 | }); |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | $this->mergeConfigFrom(__DIR__ . '/../config.php', 'captcha'); |
| 48 | 48 | |
| 49 | 49 | // 注册服务 |
| 50 | - $this->app->singleton('captcha', function () { |
|
| 50 | + $this->app->singleton('captcha', function() { |
|
| 51 | 51 | |
| 52 | 52 | $config = Config::get('captcha', array()); |
| 53 | 53 | |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | * 验证 |
| 41 | 41 | * |
| 42 | 42 | * @param $request |
| 43 | - * @param $captchaKey |
|
| 43 | + * @param string $captchaKey |
|
| 44 | 44 | */ |
| 45 | 45 | protected function validate($request, $captchaKey) |
| 46 | 46 | { |