mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
Laravel 13 support
This commit is contained in:
@@ -4,7 +4,9 @@ declare(strict_types=1);
|
||||
|
||||
namespace App\Support;
|
||||
|
||||
use App\Rules\RecaptchaRule;
|
||||
use App\Rules\TurnstileRule;
|
||||
use App\Services\RecaptchaService;
|
||||
use App\Services\TurnstileService;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
|
||||
@@ -67,7 +69,7 @@ class CaptchaHelper
|
||||
}
|
||||
|
||||
// Default to reCAPTCHA
|
||||
return app('captcha')->display($attributes);
|
||||
return RecaptchaService::display($attributes);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -86,7 +88,7 @@ class CaptchaHelper
|
||||
}
|
||||
|
||||
// Default to reCAPTCHA
|
||||
return app('captcha')->renderJs();
|
||||
return RecaptchaService::renderJs();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -130,7 +132,7 @@ class CaptchaHelper
|
||||
return [
|
||||
$fieldName => [
|
||||
'required',
|
||||
'captcha',
|
||||
new RecaptchaRule,
|
||||
],
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user