Skip to content

Commit 340e30d

Browse files
committed
Changes to favor Laravel 5
1 parent 532a55d commit 340e30d

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ This package gives you an easy validation in PHP for Google's new (december 2014
99

1010
You can install this package by using [Composer](https://getcomposer.org/).
1111

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`.
1313
- Option 2: Run `composer require marwelln/recaptcha:dev-master`
1414

1515
### Laravel
@@ -38,14 +38,14 @@ There are three optional attributes available for you to style and manage the wi
3838

3939
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.
4040

41+
Laravel 5:
42+
43+
{!! View::make('recaptcha.display') !!}
44+
4145
Laravel 4:
4246

4347
{{ View::make('recaptcha::display') }}
4448

45-
Laravel 5:
46-
47-
{!! View::make('recaptcha::display') !!}
48-
4949
# Back-end usage
5050

5151
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`
100100

101101
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.
102102

103-
Laravel 4:
104-
105-
php artisan config:publish marwelln/recaptcha
106-
107103
Laravel 5:
108104

109105
php artisan vendor:publish
106+
107+
Laravel 4:
108+
109+
php artisan config:publish marwelln/recaptcha
110110

111111
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

Comments
 (0)