Files
newznab-tmux/app/Http/Requests/Auth/LoginLoginRequest.php
T
2023-03-30 21:44:25 +02:00

24 lines
556 B
PHP

<?php
namespace App\Http\Requests\Auth;
use Illuminate\Foundation\Http\FormRequest;
class LoginLoginRequest extends FormRequest
{
/**
* Get the validation rules that apply to the request.
*/
public function rules(): array
{
if (config('captcha.enabled') === true && (! empty(config('captcha.secret')) && ! empty(config('captcha.sitekey')))) {
return [
'g-recaptcha-response' => [
'required',
'captcha',
],
];
}
}
}