We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 118ddc3 commit 600093bCopy full SHA for 600093b
src/Http/Requests/CreateFormSubmissionRequest.php
@@ -2,7 +2,7 @@
2
3
namespace Musonza\Form\Http\Requests;
4
5
-use Form;
+use Musonza\Form\Form;
6
use Illuminate\Foundation\Http\FormRequest;
7
use Musonza\Form\Rules\ReCaptcha;
8
@@ -25,9 +25,12 @@ public function authorize()
25
*/
26
public function rules()
27
{
28
+ /** @var $form Form */
29
+ $form = app(Form::class);
30
+
31
return [
32
'g-recaptcha-response' => [
- Form::googleRecaptchaEnabled() ? 'required' : '',
33
+ $form->googleRecaptchaEnabled() ? 'required' : '',
34
new ReCaptcha,
35
],
36
];
0 commit comments