You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ This package gives you an easy validation in PHP for Google's new (december 2014
9
9
10
10
You can install this package by using [Composer](https://getcomposer.org/).
11
11
12
-
- Option 1: Add `"marwelln/recaptcha" : "~1.0"` to your `composer.json` file and run `composer update`.
12
+
- Option 1: Add `"marwelln/recaptcha" : "~2.0"` to your `composer.json` file and run `composer update`.
13
13
- Option 2: Run `composer require marwelln/recaptcha:dev-master`
14
14
15
15
### Laravel
@@ -38,14 +38,14 @@ There are three optional attributes available for you to style and manage the wi
38
38
39
39
If your using Laravel, you can display the widget by including the available view file. This will include the script file and the div tag.
40
40
41
+
Laravel 5:
42
+
43
+
{!! View::make('recaptcha.display') !!}
44
+
41
45
Laravel 4:
42
46
43
47
{{ View::make('recaptcha::display') }}
44
48
45
-
Laravel 5:
46
-
47
-
{!! View::make('recaptcha::display') !!}
48
-
49
49
# Back-end usage
50
50
51
51
To validate the response we get from Google we use the `Marwelln\Recaptcha\Model` class.
@@ -100,12 +100,12 @@ There is not really a need to publish the configuration file. Both the `siteKey`
100
100
101
101
The only option available is to enable or disable curl. So if you're having trouble or don't have access to curl, you can publish the configuration file and change the `curl` value to false. We will then use `file_get_contents` instead.
102
102
103
-
Laravel 4:
104
-
105
-
php artisan config:publish marwelln/recaptcha
106
-
107
103
Laravel 5:
108
104
109
105
php artisan vendor:publish
106
+
107
+
Laravel 4:
108
+
109
+
php artisan config:publish marwelln/recaptcha
110
110
111
111
See [Protecting Sensitive Configuration](http://laravel.com/docs/4.2/configuration#protecting-sensitive-configuration) if you don't know how to setup environment variables in Laravel 4.
0 commit comments