1
0
Daniel Supernault 4 жил өмнө
parent
commit
425a6311e2

+ 1 - 0
config/app.php

@@ -213,6 +213,7 @@ return [
         'PrettyNumber' => App\Util\Lexer\PrettyNumber::class,
         'Purify'       => Stevebauman\Purify\Facades\Purify::class,
         'FFMpeg'       => Pbmedia\LaravelFFMpeg\FFMpegFacade::class,
+        'Captcha'      => Buzz\LaravelHCaptcha\CaptchaFacade::class,
     ],
 
 ];

+ 1 - 1
resources/views/auth/login.blade.php

@@ -52,7 +52,7 @@
 
                         @if(config('captcha.enabled'))
                         <div class="d-flex justify-content-center mb-3">
-                            {!! app('captcha')->display() !!}
+                            {!! Captcha::display() !!}
                         </div>
                         @endif
 

+ 1 - 1
resources/views/auth/register.blade.php

@@ -83,7 +83,7 @@
 
                         @if(config('captcha.enabled'))
                         <div class="d-flex justify-content-center my-3">
-                            {!! app('captcha')->display() !!}
+                            {!! Captcha::display() !!}
                         </div>
                         @endif
 

+ 1 - 1
resources/views/site/index.blade.php

@@ -110,7 +110,7 @@
                                         </div>
                                         @if(config('captcha.enabled'))
                                         <div class="d-flex justify-content-center mb-3">
-                                            {!! app('captcha')->display() !!}
+                                            {!! Captcha::display() !!}
                                         </div>
                                         @endif
                                         <div class="form-group row mb-0">