@@ -41,7 +41,7 @@ |
||
| 41 | 41 | $this->mergeConfigFrom(__DIR__ . '/../../config/captcha.php', 'captcha'); |
| 42 | 42 | |
| 43 | 43 | //注册到容器中 |
| 44 | - $this->app->singleton('captcha', function () { |
|
| 44 | + $this->app->singleton('captcha', function() { |
|
| 45 | 45 | |
| 46 | 46 | $config = config('captcha', array()); |
| 47 | 47 | |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | public static function routes($path = '/captcha') |
| 48 | 48 | { |
| 49 | 49 | |
| 50 | - app('router')->get($path, function () { |
|
| 50 | + app('router')->get($path, function() { |
|
| 51 | 51 | |
| 52 | 52 | return app('captcha')->make()->response(); |
| 53 | 53 | |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | public static function validations() |
| 71 | 71 | { |
| 72 | 72 | |
| 73 | - app('validator')->extend('captcha', function ($attribute, $value) { |
|
| 73 | + app('validator')->extend('captcha', function($attribute, $value) { |
|
| 74 | 74 | |
| 75 | 75 | return app('captcha')->check($value); |
| 76 | 76 | }); |